org.knime.core.data.container
Class BufferFromFileIteratorVersion20.DataCellStreamReader

java.lang.Object
  extended by org.knime.core.data.container.BufferFromFileIteratorVersion20.DataCellStreamReader
Enclosing class:
BufferFromFileIteratorVersion20

static class BufferFromFileIteratorVersion20.DataCellStreamReader
extends Object

Utility class that separates the logic of reading DataCells from the stream. It is a separate class since the same logic is also used to read files containing blob cells.


Constructor Summary
BufferFromFileIteratorVersion20.DataCellStreamReader(Buffer buffer)
          Only memorizes the buffer.
 
Method Summary
(package private)  BlobDataCell readBlobDataCell(BlobDataCell.BlobAddress blobAddress, CellClassInfo cl)
          Reads the blob from the given blob address.
(package private)  DataCell readDataCell(DCObjectInputVersion2 inStream)
          Reads a data cell from the argument stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferFromFileIteratorVersion20.DataCellStreamReader

BufferFromFileIteratorVersion20.DataCellStreamReader(Buffer buffer)
Only memorizes the buffer.

Parameters:
buffer - associated buffer.
Method Detail

readDataCell

DataCell readDataCell(DCObjectInputVersion2 inStream)
                throws IOException
Reads a data cell from the argument stream. Does not exception handling, nor stream blocking.

Parameters:
inStream - To read from.
Returns:
the data cell being read
Throws:
IOException - If exceptions occur.

readBlobDataCell

BlobDataCell readBlobDataCell(BlobDataCell.BlobAddress blobAddress,
                              CellClassInfo cl)
                        throws IOException
Reads the blob from the given blob address.

Parameters:
blobAddress - The address to read from.
cl - The expected class.
Returns:
The blob cell being read.
Throws:
IOException - If that fails.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.