Package org.apache.beam.sdk.io.xml
Class XmlIO.Sink<T>
java.lang.Object
org.apache.beam.sdk.io.xml.XmlIO.Sink<T>
- All Implemented Interfaces:
 Serializable,FileIO.Sink<T>
- Enclosing class:
 XmlIO
Implementation of 
XmlIO.sink(java.lang.Class<T>).- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flushes the buffered state (if any) before the channel is closed.voidopen(WritableByteChannel channel) Initializes writing to the given channel.withCharset(Charset charset) withRootElement(String rootElement) voidAppends a single element to the file. 
- 
Constructor Details
- 
Sink
public Sink() 
 - 
 - 
Method Details
- 
withRootElement
 - 
withCharset
 - 
open
Description copied from interface:FileIO.SinkInitializes writing to the given channel. Will be invoked once on a givenFileIO.Sinkinstance.- Specified by:
 openin interfaceFileIO.Sink<T>- Throws:
 IOException
 - 
write
Description copied from interface:FileIO.SinkAppends a single element to the file. May be invoked zero or more times.- Specified by:
 writein interfaceFileIO.Sink<T>- Throws:
 IOException
 - 
flush
Description copied from interface:FileIO.SinkFlushes the buffered state (if any) before the channel is closed. Does not need to close the channel. Will be invoked once.- Specified by:
 flushin interfaceFileIO.Sink<T>- Throws:
 IOException
 
 -