|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.ObjectInputStream
org.knime.core.data.container.DCObjectInputStream
final class DCObjectInputStream
Obsolete input stream to read Files written with Buffer objects in KNIME 1.x (and 2.0TechPreview).
Input stream that is used by the Buffer to read (java.io.-)serialized
DataCell (the ones whose type does not support customized
reading/writing) and also DataCell objects that have been
written using a DataCellSerializer. The class extends
ObjectInputStream but delegates incoming readObject() requests
to a private ObjectInputStream.
Reading DataCell using a DataCellSerializer
is done using the readDataCell() method. It will use another
input stream that delegates itself to the private ObjectInputStream but
uses blocks to determine the end of a DataCell. An attempt to
summarize the different streams is made in the following figure (for the
output stream though).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectInputStream |
|---|
ObjectInputStream.GetField |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DCObjectInputStream(InputStream in)
Creates new input stream that reads from in. |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
void |
defaultReadObject()
|
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] buf,
int off,
int len)
|
BlobDataCell.BlobAddress |
readBlobAddress()
Reads a blob address from the stream and ends the block. |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
DataCell |
readDataCell(DataCellSerializer<? extends DataCell> serializer)
Reads a data cell from the stream and pushes the stream forward to the end of the block. |
double |
readDouble()
|
ObjectInputStream.GetField |
readFields()
|
float |
readFloat()
|
void |
readFully(byte[] buf)
|
void |
readFully(byte[] buf,
int off,
int len)
|
int |
readInt()
|
long |
readLong()
|
protected Object |
readObjectOverride()
|
short |
readShort()
|
Object |
readUnshared()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
void |
registerValidation(ObjectInputValidation obj,
int prio)
|
void |
reset()
|
(package private) void |
setCurrentClassLoader(ClassLoader l)
Set the class loader to ask "first" to load classes. |
long |
skip(long n)
|
int |
skipBytes(int len)
|
String |
toString()
|
| Methods inherited from class java.io.ObjectInputStream |
|---|
enableResolveObject, readClassDescriptor, readLine, readObject, readStreamHeader, resolveClass, resolveObject, resolveProxyClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
DCObjectInputStream(InputStream in)
throws IOException
in.
in - The stream to read from.
IOException - If the init of the stream reading fails.| Method Detail |
|---|
public DataCell readDataCell(DataCellSerializer<? extends DataCell> serializer)
throws IOException
serializer - The factory that is used to create the cell
IOException - If reading fails.DataCellSerializer.deserialize(DataCellDataInput)
public BlobDataCell.BlobAddress readBlobAddress()
throws IOException
IOException - If that fails.
public int available()
throws IOException
available in interface ObjectInputavailable in class ObjectInputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in class ObjectInputStreamIOException
public void defaultReadObject()
throws IOException,
ClassNotFoundException
defaultReadObject in class ObjectInputStreamIOException
ClassNotFoundExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStream
public int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOException
public int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOException
public int read(byte[] b)
throws IOException
read in interface ObjectInputread in class InputStreamIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOException
public byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOException
public char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOException
public double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOException
public ObjectInputStream.GetField readFields()
throws IOException,
ClassNotFoundException
readFields in class ObjectInputStreamIOException
ClassNotFoundException
public float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOException
public void readFully(byte[] buf,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public void readFully(byte[] buf)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOException
public long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOException
protected Object readObjectOverride()
throws IOException,
ClassNotFoundException
readObjectOverride in class ObjectInputStreamIOException
ClassNotFoundException
public short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOException
public Object readUnshared()
throws IOException,
ClassNotFoundException
readUnshared in class ObjectInputStreamIOException
ClassNotFoundException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOException
public String readUTF()
throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOException
public void registerValidation(ObjectInputValidation obj,
int prio)
throws NotActiveException,
InvalidObjectException
registerValidation in class ObjectInputStreamNotActiveException
InvalidObjectException
public void reset()
throws IOException
reset in class InputStreamIOException
public long skip(long n)
throws IOException
skip in interface ObjectInputskip in class InputStreamIOException
public int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOExceptionpublic String toString()
toString in class Objectvoid setCurrentClassLoader(ClassLoader l)
l - The class loader to use, if null it uses the
globally known class loader (GlobalClassCreator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||