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.InputFactoryImplASYNC_XML_INPUT_FACTORYprotected com.fasterxml.aalto.AsyncXMLStreamReader<com.fasterxml.aalto.AsyncByteArrayFeeder>asyncXMLStreamReaderprotected Charsetcharsetprotected ContentHandlercontentHandlerprotected LexicalHandlerlexicalHandler
-
Constructor Summary
Constructors Constructor Description SAXWriter(ContentHandler contentHandler, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(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:
writein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-