Package org.vast.cdm.common
Interface DataStreamWriter
- All Known Implementing Classes:
AbstractDataWriter,AbstractDataWriter,AsciiDataWriter,BinaryDataWriter,BinaryDataWriter,FilteredWriter,JsonArrayDataWriterGson,JsonDataWriter,JsonDataWriterGson,TextDataWriter,XmlDataWriter,XmlDataWriter,XmlDataWriterDOM
public interface DataStreamWriter
Concrete implementations of this interface are responsible for writing data using the specified encoding format and data components. Result data should be written in the outputStream.
- Since:
- Aug 12, 2005
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidflush()voidreset()voidsetDataComponents(DataComponent components) voidsetDataEncoding(DataEncoding encoding) voidsetDataHandler(DataHandler handler) voidsetErrorHandler(ErrorHandler handler) voidsetOutput(OutputStream outputStream) voidsetParentArray(BlockComponent parentArray) voidsetRawDataHandler(RawDataHandler handler) voidstartStream(boolean multipleRecords) voidstop()voidwrite(OutputStream outputStream) void
-
Method Details
-
getDataHandler
DataHandler getDataHandler() -
getRawDataHandler
RawDataHandler getRawDataHandler() -
getErrorHandler
ErrorHandler getErrorHandler() -
getDataComponents
DataComponent getDataComponents() -
getDataEncoding
DataEncoding getDataEncoding() -
setDataHandler
-
setRawDataHandler
-
setErrorHandler
-
setDataComponents
-
setDataEncoding
-
setParentArray
-
setOutput
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
startStream
- Throws:
IOException
-
endStream
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Throws:
IOException
-
reset
void reset() -
stop
void stop()
-