public class WriterService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
XHTML_NAMESPACE |
Constructor and Description |
---|
WriterService(BufferedWriter bufferedWriter,
MemoryStringWriter bufferWriter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static WriterService |
createBufferedService(OutputStream out,
String encoding) |
XmlWriter |
createHeaderXmlWriter() |
static WriterService |
createPassThroughService(OutputStream out,
String encoding) |
MemoryStringWriter |
getBufferWriter() |
XmlWriter |
getXmlWriter() |
boolean |
isBuffered() |
public static final String XHTML_NAMESPACE
public WriterService(BufferedWriter bufferedWriter, MemoryStringWriter bufferWriter)
public XmlWriter getXmlWriter()
public MemoryStringWriter getBufferWriter()
public XmlWriter createHeaderXmlWriter()
public boolean isBuffered()
public static WriterService createPassThroughService(OutputStream out, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public static WriterService createBufferedService(OutputStream out, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public void close() throws IOException
IOException
Copyright © 2017 Hitachi Vantara. All rights reserved.