|
||||||||||
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 ObjectInput
available
in class ObjectInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface ObjectInput
close
in class ObjectInputStream
IOException
public void defaultReadObject() throws IOException, ClassNotFoundException
defaultReadObject
in class ObjectInputStream
IOException
ClassNotFoundException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
public int read(byte[] b) throws IOException
read
in interface ObjectInput
read
in class InputStream
IOException
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in class ObjectInputStream
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
readByte
in class ObjectInputStream
IOException
public char readChar() throws IOException
readChar
in interface DataInput
readChar
in class ObjectInputStream
IOException
public double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in class ObjectInputStream
IOException
public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
readFields
in class ObjectInputStream
IOException
ClassNotFoundException
public float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in class ObjectInputStream
IOException
public void readFully(byte[] buf, int off, int len) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public void readFully(byte[] buf) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public int readInt() throws IOException
readInt
in interface DataInput
readInt
in class ObjectInputStream
IOException
public long readLong() throws IOException
readLong
in interface DataInput
readLong
in class ObjectInputStream
IOException
protected Object readObjectOverride() throws IOException, ClassNotFoundException
readObjectOverride
in class ObjectInputStream
IOException
ClassNotFoundException
public short readShort() throws IOException
readShort
in interface DataInput
readShort
in class ObjectInputStream
IOException
public Object readUnshared() throws IOException, ClassNotFoundException
readUnshared
in class ObjectInputStream
IOException
ClassNotFoundException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in class ObjectInputStream
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in class ObjectInputStream
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in class ObjectInputStream
IOException
public void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
registerValidation
in class ObjectInputStream
NotActiveException
InvalidObjectException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in interface ObjectInput
skip
in class InputStream
IOException
public int skipBytes(int len) throws IOException
skipBytes
in interface DataInput
skipBytes
in class ObjectInputStream
IOException
public String toString()
toString
in class Object
void 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 |