Class StreamEventWriter

java.lang.Object
javanet.staxutils.BaseXMLEventWriter
javanet.staxutils.io.StreamEventWriter
All Implemented Interfaces:
XMLEventConsumer, XMLEventWriter

public class StreamEventWriter extends BaseXMLEventWriter
XMLEventWriter that writes events to a character stream using XMLEvent.writeAsEncodedUnicode(Writer).
Version:
$Revision: 1.4 $
Author:
Christian Niles
  • Constructor Details

    • StreamEventWriter

      public StreamEventWriter(File file) throws IOException
      Constructs a new StreamEventWriter that writes to a file.
      Parameters:
      file - The file to write.
      Throws:
      IOException - If the file couldn't be opened.
    • StreamEventWriter

      public StreamEventWriter(OutputStream os)
      Constructs a new StreamEventWriter that writes to a binary stream.
      Parameters:
      os - The stream to write.
    • StreamEventWriter

      public StreamEventWriter(Writer writer)
      Constructs a new StreamEventWriter that writes to a character stream.
      Parameters:
      writer - The stream to write.
  • Method Details