Package org.smooks.io
Class SAXWriter
- java.lang.Object
-
- java.io.Writer
-
- org.smooks.io.SAXWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class SAXWriter extends Writer
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.fasterxml.aalto.stax.InputFactoryImpl
ASYNC_XML_INPUT_FACTORY
protected com.fasterxml.aalto.AsyncXMLStreamReader<com.fasterxml.aalto.AsyncByteArrayFeeder>
asyncXMLStreamReader
protected Charset
charset
protected ContentHandler
contentHandler
protected LexicalHandler
lexicalHandler
-
Constructor Summary
Constructors Constructor Description SAXWriter(ContentHandler contentHandler, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
write(char[] cbuf, int off, int len)
-
-
-
Field Detail
-
ASYNC_XML_INPUT_FACTORY
protected static final com.fasterxml.aalto.stax.InputFactoryImpl ASYNC_XML_INPUT_FACTORY
-
contentHandler
protected final ContentHandler contentHandler
-
asyncXMLStreamReader
protected final com.fasterxml.aalto.AsyncXMLStreamReader<com.fasterxml.aalto.AsyncByteArrayFeeder> asyncXMLStreamReader
-
lexicalHandler
protected final LexicalHandler lexicalHandler
-
charset
protected final Charset charset
-
-
Constructor Detail
-
SAXWriter
public SAXWriter(ContentHandler contentHandler, Charset charset)
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
-