public class CustomObjectInputStream
extends java.io.ObjectInputStream
Modifier and Type | Class and Description |
---|---|
static interface |
CustomObjectInputStream.StreamCallback |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Constructor and Description |
---|
CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback,
java.lang.ClassLoader classLoader)
Deprecated.
As of 1.4.5 use
CustomObjectInputStream(StreamCallback, ClassLoaderReference) |
CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback,
ClassLoaderReference classLoaderReference)
Warning, this object is expensive to create (due to functionality inherited from superclass).
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Unsupported methods
|
void |
close() |
void |
defaultReadObject() |
static CustomObjectInputStream |
getInstance(DataHolder whereFrom,
CustomObjectInputStream.StreamCallback callback)
Deprecated.
As of 1.4 use
getInstance(DataHolder, StreamCallback, ClassLoader) |
static CustomObjectInputStream |
getInstance(DataHolder whereFrom,
CustomObjectInputStream.StreamCallback callback,
java.lang.ClassLoader classLoader)
Deprecated.
As of 1.4.5 use
getInstance(DataHolder, StreamCallback, ClassLoaderReference) |
static CustomObjectInputStream |
getInstance(DataHolder whereFrom,
CustomObjectInputStream.StreamCallback callback,
ClassLoaderReference classLoaderReference) |
void |
mark(int readlimit) |
boolean |
markSupported() |
CustomObjectInputStream.StreamCallback |
peekCallback() |
CustomObjectInputStream.StreamCallback |
popCallback() |
void |
pushCallback(CustomObjectInputStream.StreamCallback callback)
Allows the CustomObjectInputStream (which is expensive to create) to be reused.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] buf,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
java.io.ObjectInputStream.GetField |
readFields() |
float |
readFloat() |
void |
readFully(byte[] buf) |
void |
readFully(byte[] buf,
int off,
int len) |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
protected java.lang.Object |
readObjectOverride() |
short |
readShort() |
java.lang.Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
registerValidation(java.io.ObjectInputValidation validation,
int priority) |
void |
reset() |
protected java.lang.Class |
resolveClass(java.io.ObjectStreamClass desc) |
long |
skip(long n) |
int |
skipBytes(int len) |
public CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback, ClassLoaderReference classLoaderReference) throws java.io.IOException, java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
getInstance(DataHolder, StreamCallback, ClassLoaderReference)
public CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback, java.lang.ClassLoader classLoader) throws java.io.IOException, java.lang.SecurityException
CustomObjectInputStream(StreamCallback, ClassLoaderReference)
java.io.IOException
java.lang.SecurityException
public static CustomObjectInputStream getInstance(DataHolder whereFrom, CustomObjectInputStream.StreamCallback callback)
getInstance(DataHolder, StreamCallback, ClassLoader)
public static CustomObjectInputStream getInstance(DataHolder whereFrom, CustomObjectInputStream.StreamCallback callback, java.lang.ClassLoader classLoader)
getInstance(DataHolder, StreamCallback, ClassLoaderReference)
public static CustomObjectInputStream getInstance(DataHolder whereFrom, CustomObjectInputStream.StreamCallback callback, ClassLoaderReference classLoaderReference)
public void pushCallback(CustomObjectInputStream.StreamCallback callback)
public CustomObjectInputStream.StreamCallback popCallback()
public CustomObjectInputStream.StreamCallback peekCallback()
protected java.lang.Class resolveClass(java.io.ObjectStreamClass desc) throws java.io.IOException, java.lang.ClassNotFoundException
resolveClass
in class java.io.ObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
public void defaultReadObject() throws java.io.IOException
defaultReadObject
in class java.io.ObjectInputStream
java.io.IOException
protected java.lang.Object readObjectOverride() throws java.io.IOException
readObjectOverride
in class java.io.ObjectInputStream
java.io.IOException
public java.lang.Object readUnshared() throws java.io.IOException, java.lang.ClassNotFoundException
readUnshared
in class java.io.ObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
readBoolean
in class java.io.ObjectInputStream
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
readByte
in class java.io.ObjectInputStream
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
readUnsignedByte
in class java.io.ObjectInputStream
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
readInt
in class java.io.ObjectInputStream
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
readChar
in class java.io.ObjectInputStream
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
readFloat
in class java.io.ObjectInputStream
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
readDouble
in class java.io.ObjectInputStream
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
readLong
in class java.io.ObjectInputStream
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
readShort
in class java.io.ObjectInputStream
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
readUnsignedShort
in class java.io.ObjectInputStream
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
readUTF
in class java.io.ObjectInputStream
java.io.IOException
public void readFully(byte[] buf) throws java.io.IOException
readFully
in interface java.io.DataInput
readFully
in class java.io.ObjectInputStream
java.io.IOException
public void readFully(byte[] buf, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
readFully
in class java.io.ObjectInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in interface java.io.ObjectInput
read
in class java.io.ObjectInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in interface java.io.ObjectInput
read
in class java.io.ObjectInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in interface java.io.ObjectInput
read
in class java.io.InputStream
java.io.IOException
public java.io.ObjectInputStream.GetField readFields() throws java.io.IOException
readFields
in class java.io.ObjectInputStream
java.io.IOException
public void registerValidation(java.io.ObjectInputValidation validation, int priority) throws java.io.NotActiveException, java.io.InvalidObjectException
registerValidation
in class java.io.ObjectInputStream
java.io.NotActiveException
java.io.InvalidObjectException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.io.ObjectInput
close
in interface java.lang.AutoCloseable
close
in class java.io.ObjectInputStream
java.io.IOException
public int available()
available
in interface java.io.ObjectInput
available
in class java.io.ObjectInputStream
public java.lang.String readLine()
readLine
in interface java.io.DataInput
readLine
in class java.io.ObjectInputStream
public int skipBytes(int len)
skipBytes
in interface java.io.DataInput
skipBytes
in class java.io.ObjectInputStream
public long skip(long n)
skip
in interface java.io.ObjectInput
skip
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
public void reset()
reset
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
Copyright © 2004–2022 XStream. All rights reserved.