Top Inners Fields Constructors Methods
com.thoughtworks.xstream.core.util

public Class CustomObjectInputStream

extends ObjectInputStream
Class Inheritance
Imports
java.io.IOException, .InvalidObjectException, .NotActiveException, .ObjectInputStream, .ObjectInputValidation, .ObjectStreamClass, .StreamCorruptedException, java.util.Map, com.thoughtworks.xstream.converters.DataHolder, com.thoughtworks.xstream.converters.reflection.ObjectAccessException, com.thoughtworks.xstream.core.ClassLoaderReference, com.thoughtworks.xstream.io.StreamException

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
public static interface

Field Summary

Modifier and TypeField and Description
private FastStack
private final ClassLoaderReference
private static final String

Constructor Summary

AccessConstructor and Description
public
CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback, ClassLoaderReference classLoaderReference)

Warning, this object is expensive to create (due to functionality inherited from superclass).

public

Method Summary

Modifier and TypeMethod and Description
public int
public void
public void
defaultReadObject()

Overrides java.io.ObjectInputStream.defaultReadObject.

Read the non-static and non-transient fields of the current class from this stream.
public static CustomObjectInputStream
public static synchronized CustomObjectInputStream
public static synchronized CustomObjectInputStream
public void
mark(int
the maximum limit of bytes that can be read before the mark position becomes invalid.
readlimit
)

Overrides java.io.InputStream.mark.

Marks the current position in this input stream.
public boolean
markSupported()

Overrides java.io.InputStream.markSupported.

Tests if this input stream supports the mark and reset methods.
public CustomObjectInputStream.StreamCallback
public CustomObjectInputStream.StreamCallback
public void
pushCallback(CustomObjectInputStream.StreamCallback callback)

Allows the CustomObjectInputStream (which is expensive to create) to be reused.

public int
read()

Overrides java.io.ObjectInputStream.read.

Implements java.io.ObjectInput.read.

Reads a byte of data.
public int
read(byte[]
the buffer into which the data is read
buf
,
int
the start offset in the destination array buf
off
,
int
the maximum number of bytes read
len
)

Overrides java.io.ObjectInputStream.read.

Implements java.io.ObjectInput.read.

Reads into an array of bytes.
public int
read(byte[]
the buffer into which the data is read
b
)

Overrides java.io.InputStream.read.

Implements java.io.ObjectInput.read.

Reads into an array of bytes.
public boolean
public byte
readByte()

Overrides java.io.ObjectInputStream.readByte.

Implements java.io.DataInput.readByte.

Reads an 8-bit byte.
public char
readChar()

Overrides java.io.ObjectInputStream.readChar.

Implements java.io.DataInput.readChar.

Reads a 16-bit char.
public double
readDouble()

Overrides java.io.ObjectInputStream.readDouble.

Implements java.io.DataInput.readDouble.

Reads a 64-bit double.
public ObjectInputStream.GetField
readFields()

Overrides java.io.ObjectInputStream.readFields.

Reads the persistent fields from the stream and makes them available by name.
public float
readFloat()

Overrides java.io.ObjectInputStream.readFloat.

Implements java.io.DataInput.readFloat.

Reads a 32-bit float.
public void
readFully(byte[]
the buffer into which the data is read
buf
)

Overrides java.io.ObjectInputStream.readFully.

Implements java.io.DataInput.readFully.

Reads bytes, blocking until all bytes are read.
public void
readFully(byte[]
the buffer into which the data is read
buf
,
int
the start offset into the data array buf
off
,
int
the maximum number of bytes to read
len
)

Overrides java.io.ObjectInputStream.readFully.

Implements java.io.DataInput.readFully.

Reads bytes, blocking until all bytes are read.
public int
readInt()

Overrides java.io.ObjectInputStream.readInt.

Implements java.io.DataInput.readInt.

Reads a 32-bit int.
public String
readLine()

Overrides java.io.ObjectInputStream.readLine.

Implements java.io.DataInput.readLine.

Reads in a line that has been terminated by a \n, \r, \r\n or EOF.
public long
readLong()

Overrides java.io.ObjectInputStream.readLong.

Implements java.io.DataInput.readLong.

Reads a 64-bit long.
protected Object
readObjectOverride()

Overrides java.io.ObjectInputStream.readObjectOverride.

This method is called by trusted subclasses of ObjectInputStream that constructed ObjectInputStream using the protected no-arg constructor.
public short
readShort()

Overrides java.io.ObjectInputStream.readShort.

Implements java.io.DataInput.readShort.

Reads a 16-bit short.
public Object
readUnshared()

Overrides java.io.ObjectInputStream.readUnshared.

Reads an "unshared" object from the ObjectInputStream.
public int
public int
public String
readUTF()

Overrides java.io.ObjectInputStream.readUTF.

Implements java.io.DataInput.readUTF.

Reads a String in modified UTF-8 format.
public void
registerValidation(ObjectInputValidation
the object to receive the validation callback.
validation
,
int
controls the order of callbacks; zero is a good default. Use higher numbers to be called back earlier, lower numbers for later callbacks. Within a priority, callbacks are processed in no particular order.
priority
)

Overrides java.io.ObjectInputStream.registerValidation.

Register an object to be validated before the graph is returned.
public void
reset()

Overrides java.io.InputStream.reset.

Repositions this stream to the position at the time the mark method was last called on this input stream.
protected Class<T>
resolveClass(ObjectStreamClass
an instance of class ObjectStreamClass
desc
)

Overrides java.io.ObjectInputStream.resolveClass.

Load the local class equivalent of the specified stream class description.
public long
skip(long
the number of bytes to be skipped
n
)

Overrides java.io.InputStream.skip.

Implements java.io.ObjectInput.skip.

Skips n bytes of input.
public int
skipBytes(int
the number of bytes to be skipped
len
)

Overrides java.io.ObjectInputStream.skipBytes.

Implements java.io.DataInput.skipBytes.

Skips bytes.
Inherited from java.io.ObjectInputStream:
enableResolveObjectgetObjectInputFilterreadClassDescriptorreadObjectreadStreamHeaderresolveObjectresolveProxyClasssetObjectInputFilter