Class XMLSocketWriter

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, XMLFilter, XMLReader

public class XMLSocketWriter extends XMLWriter
XMLWriter whose writer is actually sending data on a socket connection. Since sending data over a socket may have particular type of errors this class tries to deal with those errors.
  • Constructor Details

  • Method Details

    • flush

      public void flush() throws IOException
      Flushes the underlying writer making sure that if the connection is dead then the thread that is flushing does not end up in an endless wait.
      Overrides:
      flush in class XMLWriter
      Throws:
      IOException - if an I/O error occurs while flushing the writer.