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 TypeMethodDescriptionvoid
close()
void
void
flush()
void
reset()
void
setDataComponents
(DataComponent components) void
setDataEncoding
(DataEncoding encoding) void
setDataHandler
(DataHandler handler) void
setErrorHandler
(ErrorHandler handler) void
setOutput
(OutputStream outputStream) void
setParentArray
(BlockComponent parentArray) void
setRawDataHandler
(RawDataHandler handler) void
startStream
(boolean multipleRecords) void
stop()
void
write
(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()
-