public abstract static class XmlIO.Sink<T> extends Object implements FileIO.Sink<T>
XmlIO.sink(java.lang.Class<T>).| Constructor and Description |
|---|
Sink() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
void |
open(WritableByteChannel channel) |
XmlIO.Sink<T> |
withCharset(Charset charset) |
XmlIO.Sink<T> |
withRootElement(String rootElement) |
void |
write(T element) |
public XmlIO.Sink<T> withRootElement(String rootElement)
public XmlIO.Sink<T> withCharset(Charset charset)
public void open(WritableByteChannel channel) throws IOException
open in interface FileIO.Sink<T>IOExceptionpublic void write(T element) throws IOException
write in interface FileIO.Sink<T>IOExceptionpublic void flush()
throws IOException
flush in interface FileIO.Sink<T>IOExceptionCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.