public class XmlOutputStreamFilter extends PipedOutputStream
Although this means that the interpretation of the XML will happen twice, here and in the target application, some such applications do not accept XML streams. e.g. the Simple XML framework.
| Modifier and Type | Field and Description |
|---|---|
protected Future<Boolean> |
future |
protected PipedInputStream |
pipedInputStream |
| Constructor and Description |
|---|
XmlOutputStreamFilter(OutputStream outputStream,
XmlEventTransformer eventTransformer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await() |
void |
cancel(boolean interrupt) |
void |
close() |
void |
flush() |
boolean |
isDone() |
connect, write, writewriteprotected PipedInputStream pipedInputStream
public XmlOutputStreamFilter(OutputStream outputStream, XmlEventTransformer eventTransformer) throws IOException
IOExceptionpublic void cancel(boolean interrupt)
public boolean isDone()
public boolean await()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class PipedOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class PipedOutputStreamIOExceptionCopyright © 2018. All rights reserved.