|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.container.DCObjectInputVersion2
final class DCObjectInputVersion2
Class interpreting the file format as written by the Buffer
class.
It supports both modes of DataCell
serialization, that is using
a DataCellSerializer
and a plain java serialization.
This class is the counterpart to DCObjectOutputVersion2
, see
details on the file format in there.
Field Summary |
---|
Fields inherited from interface org.knime.core.data.container.KNIMEStreamConstants |
---|
BYTE_ROW_SEPARATOR, BYTE_TYPE_MISSING, BYTE_TYPE_SERIALIZATION, BYTE_TYPE_START, DUMMY_ROW_KEY, TC_ESCAPE, TC_TERMINATE |
Constructor Summary | |
---|---|
DCObjectInputVersion2(InputStream in,
BufferFromFileIteratorVersion20.DataCellStreamReader cellReader)
Creates new input stream that reads from in . |
Method Summary | |
---|---|
(package private) void |
close()
Closes the underlying streams. |
(package private) void |
endBlock()
Pushes the stream forth until a mark is encountered. |
(package private) BlobDataCell.BlobAddress |
readBlobAddress()
Reads a blob address from the stream. |
(package private) byte |
readControlByte()
Reads a single byte from the stream. |
(package private) DataCell |
readDataCellPerJavaSerialization()
Reads a data cell from the stream using java de-serialization. |
(package private) DataCell |
readDataCellPerKNIMESerializer(DataCellSerializer<? extends DataCell> serializer)
Reads a data cell from the stream. |
(package private) RowKey |
readRowKey()
Reads a row key from the stream. |
(package private) void |
setCurrentClassLoader(ClassLoader l)
Set the class loader to ask "first" to load classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DCObjectInputVersion2(InputStream in, BufferFromFileIteratorVersion20.DataCellStreamReader cellReader)
in
.
in
- The stream to read from.cellReader
- The object that helps to read DataCell contained in
DataCell as required by DataCellDataInput.readDataCell()
.Method Detail |
---|
DataCell readDataCellPerKNIMESerializer(DataCellSerializer<? extends DataCell> serializer) throws IOException
serializer
- The factory that is used to create the cell
IOException
- If reading fails.DataCellSerializer.deserialize(DataCellDataInput)
DataCell readDataCellPerJavaSerialization() throws IOException
IOException
- If reading fails (also e.g.
ClassCastException
are wrapped in such IO exceptions).BlobDataCell.BlobAddress readBlobAddress() throws IOException
IOException
- If that fails.RowKey readRowKey() throws IOException
IOException
- If IO problems occur.byte readControlByte() throws IOException
IOException
- If IO problems occur.void endBlock() throws IOException
IOException
- If IO problems occur.void setCurrentClassLoader(ClassLoader l)
l
- The class loader to use, if null
it uses the
globally known class loader (GlobalClassCreator)void close() throws IOException
IOException
- If underlying streams fail to close.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |