Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.io
Class ObjectInputStream  view ObjectInputStream download ObjectInputStream.java

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.ObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants

public class ObjectInputStream
extends InputStream
implements ObjectInput, ObjectStreamConstants


Nested Class Summary
static class ObjectInputStream.GetField
          This class allows a class to specify exactly which fields should be read, and what values should be read for these fields.
private static class ObjectInputStream.ValidatorAndPriority
           
 
Field Summary
private  byte[] blockData
           
private  int blockDataBytes
           
private  DataInputStream blockDataInput
           
private  int blockDataPosition
           
private static int BUFFER_SIZE
           
private  java.util.Hashtable classLookupTable
           
private  java.lang.Object currentObject
           
private  ObjectStreamClass currentObjectStreamClass
           
private  java.util.TreeSet currentObjectValidators
           
private  DataInputStream dataInputStream
           
private static boolean DEBUG
           
private  int depth
           
private static boolean dump
           
private  boolean fieldsAlreadyRead
           
private  int nextOID
           
private  java.util.Hashtable objectLookupTable
           
private  ObjectInputStream.GetField prereadFields
           
private  boolean readDataFromBlock
           
private  DataInputStream realInputStream
           
private  boolean resolveEnabled
           
private  boolean useSubclassMethod
           
 
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, 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_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
 
Constructor Summary
protected ObjectInputStream()
          Protected constructor that allows subclasses to override deserialization.
  ObjectInputStream(InputStream in)
          Creates a new ObjectInputStream that will do all of its reading from in.
 
Method Summary
private  int assignNewHandle(java.lang.Object obj)
          Assigns the next available handle to obj.
 int available()
          This method returns the number of bytes that can be read without blocking.
private  void callReadMethod(java.lang.reflect.Method readObject, java.lang.Class klass, java.lang.Object obj)
           
private  void checkTypeConsistency(java.lang.String name, ObjectStreamField[] fields1, ObjectStreamField[] fields2)
          This method makes a partial check of types for the fields contained given in arguments.
private  void clearHandles()
           
 void close()
          This method closes the input source
private  java.lang.ClassLoader currentLoader()
          Returns the most recent user defined ClassLoader on the execution stack or null if none is found.
 void defaultReadObject()
          Reads the current objects non-transient, non-static fields from the current class from the underlying output stream.
private  void dumpElement(java.lang.String msg)
           
private  void dumpElementln(java.lang.String msg)
           
protected  boolean enableResolveObject(boolean enable)
          If enable is true and this object is trusted, then resolveObject (Object) will be called in subsequent calls to readObject (Object).
private  ObjectStreamClass[] inputGetObjectStreamClasses(java.lang.Class clazz)
          Reconstruct class hierarchy the same way ObjectStreamClass.getObjectStreamClasses(Class) 55 does but using lookupClass instead of ObjectStreamClass.lookup.
private  void invokeValidators()
           
private  ObjectStreamClass lookupClass(java.lang.Class clazz)
          Lookup a class stored in the local hashtable.
private  java.lang.Object newObject(java.lang.Class real_class, java.lang.reflect.Constructor constructor)
           
private  java.lang.Object parseContent(byte marker)
          Handles a content block within the stream, which begins with a marker byte indicating its type.
private  java.lang.Object processResolution(ObjectStreamClass osc, java.lang.Object obj, int handle)
           
 int read()
          This method reading a byte of data from a stream.
 int read(byte[] data, int offset, int length)
          This method reads raw bytes and stores them in a byte array buffer buf starting at position offset into the buffer.
private  void readArrayElements(java.lang.Object array, java.lang.Class clazz)
           
 boolean readBoolean()
          This method reads a Java boolean value from an input stream.
 byte readByte()
          This method reads a Java byte value from an input stream.
 char readChar()
          This method reads a Java char value from an input stream.
protected  ObjectStreamClass readClassDescriptor()
          This method reads a class descriptor from the real input stream and use these data to create a new instance of ObjectStreamClass.
 double readDouble()
          This method reads a Java double value from an input stream.
 ObjectInputStream.GetField readFields()
          This method should be called by a method called 'readObject' in the deserializing class (if present).
private  void readFields(java.lang.Object obj, ObjectStreamClass stream_osc)
           
 float readFloat()
          This method reads a Java float value from an input stream.
 void readFully(byte[] data)
          This method reads raw bytes into the passed array until the array is full.
 void readFully(byte[] data, int offset, int size)
          This method reads raw bytes into the passed array buf starting offset bytes into the buffer.
 int readInt()
          This method reads a Java int value from an input stream It operates by reading four bytes from the stream and converting them to a single Java int.
 java.lang.String readLine()
          This method reads the next line of text data from an input stream.
 long readLong()
          This method reads a Java long value from an input stream It operates by reading eight bytes from the stream and converting them to a single Java long.
private  void readNextBlock()
           
private  void readNextBlock(byte marker)
           
 java.lang.Object readObject()
          Returns the next deserialized object read from the underlying stream.
protected  java.lang.Object readObjectOverride()
          This method allows subclasses to override the default de serialization mechanism provided by ObjectInputStream.
 short readShort()
          This method reads a signed 16-bit value into a Java in from the stream.
protected  void readStreamHeader()
          Reads stream magic and stream version information from the underlying stream.
 int readUnsignedByte()
          This method reads 8 unsigned bits into a Java int value from the stream.
 int readUnsignedShort()
          This method reads 16 unsigned bits into a Java int value from the stream.
 java.lang.String readUTF()
          This method reads a String from an input stream that is encoded in a modified UTF-8 format.
 void registerValidation(ObjectInputValidation validator, int priority)
          Registers a ObjectInputValidation to be carried out on the object graph currently being deserialized before it is returned to the original caller of readObject ().
protected  java.lang.Class resolveClass(ObjectStreamClass osc)
          Called when a class is being deserialized.
protected  java.lang.Object resolveObject(java.lang.Object obj)
          Allows subclasses to resolve objects that are read from the stream with other objects to be returned in their place.
protected  java.lang.Class resolveProxyClass(java.lang.String[] intfs)
           
private  boolean setBlockDataMode(boolean on)
           
 int skipBytes(int len)
          This method skips and discards the specified number of bytes in an input stream.
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.ObjectInput
read, skip
 

Field Detail

BUFFER_SIZE

private static final int BUFFER_SIZE
See Also:
Constant Field Values

realInputStream

private DataInputStream realInputStream

dataInputStream

private DataInputStream dataInputStream

blockDataInput

private DataInputStream blockDataInput

blockDataPosition

private int blockDataPosition

blockDataBytes

private int blockDataBytes

blockData

private byte[] blockData

useSubclassMethod

private boolean useSubclassMethod

nextOID

private int nextOID

resolveEnabled

private boolean resolveEnabled

objectLookupTable

private java.util.Hashtable objectLookupTable

currentObject

private java.lang.Object currentObject

currentObjectStreamClass

private ObjectStreamClass currentObjectStreamClass

currentObjectValidators

private java.util.TreeSet currentObjectValidators

readDataFromBlock

private boolean readDataFromBlock

fieldsAlreadyRead

private boolean fieldsAlreadyRead

classLookupTable

private java.util.Hashtable classLookupTable

prereadFields

private ObjectInputStream.GetField prereadFields

dump

private static boolean dump

depth

private int depth

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

ObjectInputStream

public ObjectInputStream(InputStream in)
                  throws IOException,
                         StreamCorruptedException
Creates a new ObjectInputStream that will do all of its reading from in. This method also checks the stream by reading the header information (stream magic number and stream version).


ObjectInputStream

protected ObjectInputStream()
                     throws IOException,
                            java.lang.SecurityException
Protected constructor that allows subclasses to override deserialization. This constructor should be called by subclasses that wish to override readObject (Object). This method does a security check NOTE: currently not implemented, then sets a flag that informs readObject (Object) to call the subclasses readObjectOverride (Object) method.

Method Detail

readObject

public final java.lang.Object readObject()
                                  throws java.lang.ClassNotFoundException,
                                         IOException
Returns the next deserialized object read from the underlying stream. This method can be overriden by a class by implementing private void readObject (ObjectInputStream). If an exception is thrown from this method, the stream is left in an undefined state. This method can also throw Errors and RuntimeExceptions if caused by existing readResolve() user code.

Specified by:
readObject in interface ObjectInput

parseContent

private java.lang.Object parseContent(byte marker)
                               throws java.lang.ClassNotFoundException,
                                      IOException
Handles a content block within the stream, which begins with a marker byte indicating its type.


checkTypeConsistency

private void checkTypeConsistency(java.lang.String name,
                                  ObjectStreamField[] fields1,
                                  ObjectStreamField[] fields2)
                           throws InvalidClassException
This method makes a partial check of types for the fields contained given in arguments. It checks primitive types of fields1 against non primitive types of fields2. This method assumes the two lists has already been sorted according to the Java specification.


readClassDescriptor

protected ObjectStreamClass readClassDescriptor()
                                         throws java.lang.ClassNotFoundException,
                                                IOException
This method reads a class descriptor from the real input stream and use these data to create a new instance of ObjectStreamClass. Fields are sorted and ordered for the real read which occurs for each instance of the described class. Be aware that if you call that method you must ensure that the stream is synchronized, in the other case it may be completely desynchronized.


defaultReadObject

public void defaultReadObject()
                       throws java.lang.ClassNotFoundException,
                              IOException,
                              NotActiveException
Reads the current objects non-transient, non-static fields from the current class from the underlying output stream. This method is intended to be called from within a object's private void readObject (ObjectInputStream) method.


registerValidation

public void registerValidation(ObjectInputValidation validator,
                               int priority)
                        throws InvalidObjectException,
                               NotActiveException
Registers a ObjectInputValidation to be carried out on the object graph currently being deserialized before it is returned to the original caller of readObject (). The order of validation for multiple ObjectInputValidations can be controled using priority. Validators with higher priorities are called first.


resolveClass

protected java.lang.Class resolveClass(ObjectStreamClass osc)
                                throws java.lang.ClassNotFoundException,
                                       IOException
Called when a class is being deserialized. This is a hook to allow subclasses to read in information written by the annotateClass (Class) method of an ObjectOutputStream. This implementation looks up the active call stack for a ClassLoader; if a ClassLoader is found, it is used to load the class associated with osc, otherwise, the default system ClassLoader is used.


currentLoader

private java.lang.ClassLoader currentLoader()
Returns the most recent user defined ClassLoader on the execution stack or null if none is found.


lookupClass

private ObjectStreamClass lookupClass(java.lang.Class clazz)
Lookup a class stored in the local hashtable. If it is not use the global lookup function in ObjectStreamClass to build the ObjectStreamClass. This method is requested according to the behaviour detected in the JDK by Kaffe's team.


inputGetObjectStreamClasses

private ObjectStreamClass[] inputGetObjectStreamClasses(java.lang.Class clazz)
Reconstruct class hierarchy the same way ObjectStreamClass.getObjectStreamClasses(Class) 55 does but using lookupClass instead of ObjectStreamClass.lookup. This dup is necessary localize the lookup table. Hopefully some future rewritings will be able to prevent this.


resolveObject

protected java.lang.Object resolveObject(java.lang.Object obj)
                                  throws IOException
Allows subclasses to resolve objects that are read from the stream with other objects to be returned in their place. This method is called the first time each object is encountered. This method must be enabled before it will be called in the serialization process.


resolveProxyClass

protected java.lang.Class resolveProxyClass(java.lang.String[] intfs)
                                     throws IOException,
                                            java.lang.ClassNotFoundException

enableResolveObject

protected boolean enableResolveObject(boolean enable)
                               throws java.lang.SecurityException
If enable is true and this object is trusted, then resolveObject (Object) will be called in subsequent calls to readObject (Object). Otherwise, resolveObject (Object) will not be called.


readStreamHeader

protected void readStreamHeader()
                         throws IOException,
                                StreamCorruptedException
Reads stream magic and stream version information from the underlying stream.


read

public int read()
         throws IOException
Description copied from interface: ObjectInput
This method reading a byte of data from a stream. It returns that byte as an int. This method blocks if no data is available to be read.

Specified by:
read in interface ObjectInput
Specified by:
read in class InputStream

read

public int read(byte[] data,
                int offset,
                int length)
         throws IOException
Description copied from interface: ObjectInput
This method reads raw bytes and stores them in a byte array buffer buf starting at position offset into the buffer. A maximum of len bytes will be read. Note that this method blocks if no data is available, but will not necessarily block until it can read len bytes of data. That is, a "short count" is possible.

Specified by:
read in interface ObjectInput
Overrides:
read in class InputStream

available

public int available()
              throws IOException
Description copied from interface: ObjectInput
This method returns the number of bytes that can be read without blocking.

Specified by:
available in interface ObjectInput
Overrides:
available in class InputStream

close

public void close()
           throws IOException
Description copied from interface: ObjectInput
This method closes the input source

Specified by:
close in interface ObjectInput
Overrides:
close in class InputStream

readBoolean

public boolean readBoolean()
                    throws IOException
Description copied from interface: DataInput
This method reads a Java boolean value from an input stream. It does so by reading a single byte of data. If that byte is zero, then the value returned is false. If the byte is non-zero, then the value returned is true.

This method can read a boolean written by an object implementing the writeBoolean() method in the DataOutput interface.

Specified by:
readBoolean in interface DataInput

readByte

public byte readByte()
              throws IOException
Description copied from interface: DataInput
This method reads a Java byte value from an input stream. The value is in the range of -128 to 127.

This method can read a byte written by an object implementing the writeByte() method in the DataOutput interface.

Specified by:
readByte in interface DataInput

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
Description copied from interface: DataInput
This method reads 8 unsigned bits into a Java int value from the stream. The value returned is in the range of 0 to 255.

This method can read an unsigned byte written by an object implementing the writeByte() method in the DataOutput interface.

Specified by:
readUnsignedByte in interface DataInput

readShort

public short readShort()
                throws IOException
Description copied from interface: DataInput
This method reads a signed 16-bit value into a Java in from the stream. It operates by reading two bytes from the stream and converting them to a single 16-bit Java short. The two bytes are stored most significant byte first (i.e., "big endian") regardless of the native host byte ordering.

As an example, if byte1 and byte2 represent the first and second byte read from the stream respectively, they will be transformed to a short in the following manner:

(short)(((byte1 & 0xFF) << 8) + (byte2 & 0xFF))

The value returned is in the range of -32768 to 32767.

This method can read a short written by an object implementing the writeShort() method in the DataOutput interface.

Specified by:
readShort in interface DataInput

readUnsignedShort

public int readUnsignedShort()
                      throws IOException
Description copied from interface: DataInput
This method reads 16 unsigned bits into a Java int value from the stream. It operates by reading two bytes from the stream and converting them to a single Java int. The two bytes are stored most significant byte first (i.e., "big endian") regardless of the native host byte ordering.

As an example, if byte1 and byte2 represent the first and second byte read from the stream respectively, they will be transformed to an int in the following manner:

(int)(((byte1 0xFF) << 8) + (byte2 & 0xFF))

The value returned is in the range of 0 to 65535.

This method can read an unsigned short written by an object implementing the writeShort() method in the DataOutput interface.

Specified by:
readUnsignedShort in interface DataInput

readChar

public char readChar()
              throws IOException
Description copied from interface: DataInput
This method reads a Java char value from an input stream. It operates by reading two bytes from the stream and converting them to a single 16-bit Java char. The two bytes are stored most significant byte first (i.e., "big endian") regardless of the native host byte ordering.

As an example, if byte1 and byte2 represent the first and second byte read from the stream respectively, they will be transformed to a char in the following manner:

(char)((byte1 << 8) + byte2)

This method can read a char written by an object implementing the writeChar() method in the DataOutput interface.

Specified by:
readChar in interface DataInput

readInt

public int readInt()
            throws IOException
Description copied from interface: DataInput
This method reads a Java int value from an input stream It operates by reading four bytes from the stream and converting them to a single Java int. The bytes are stored most significant byte first (i.e., "big endian") regardless of the native host byte ordering.

As an example, if byte1 through byte4 represent the first four bytes read from the stream, they will be transformed to an int in the following manner:

(int)(((byte1 & 0xFF) << 24) + ((byte2 & 0xFF) << 16) + ((byte3 & 0xFF)<< 8) + (byte4 & 0xFF)))

The value returned is in the range of -2147483648 to 2147483647.

This method can read an int written by an object implementing the writeInt() method in the DataOutput interface.

Specified by:
readInt in interface DataInput

readLong

public long readLong()
              throws IOException
Description copied from interface: DataInput
This method reads a Java long value from an input stream It operates by reading eight bytes from the stream and converting them to a single Java long. The bytes are stored most significant byte first (i.e., "big endian") regardless of the native host byte ordering.

As an example, if byte1 through byte8 represent the first eight bytes read from the stream, they will be transformed to an long in the following manner:

(long)(((byte1 & 0xFF) << 56) + ((byte2 & 0xFF) << 48) + ((byte3 & 0xFF) << 40) + ((byte4 & 0xFF) << 32) + ((byte5 & 0xFF) << 24) + ((byte6 & 0xFF) << 16) + ((byte7 & 0xFF) << 8) + (byte8 & 0xFF)))

The value returned is in the range of -9223372036854775808 to 9223372036854775807.

This method can read an long written by an object implementing the writeLong() method in the DataOutput interface.

Specified by:
readLong in interface DataInput

readFloat

public float readFloat()
                throws IOException
Description copied from interface: DataInput
This method reads a Java float value from an input stream. It operates by first reading an int value from the stream by calling the readInt() method in this interface, then converts that int to a float using the intBitsToFloat method in the class java.lang.Float.

This method can read a float written by an object implementing the writeFloat() method in the DataOutput interface.

Specified by:
readFloat in interface DataInput

readDouble

public double readDouble()
                  throws IOException
Description copied from interface: DataInput
This method reads a Java double value from an input stream. It operates by first reading a long value from the stream by calling the readLong() method in this interface, then converts that long to a double using the longBitsToDouble method in the class java.lang.Double.

This method can read a double written by an object implementing the writeDouble() method in the DataOutput interface.

Specified by:
readDouble in interface DataInput

readFully

public void readFully(byte[] data)
               throws IOException
Description copied from interface: DataInput
This method reads raw bytes into the passed array until the array is full. Note that this method blocks until the data is available and throws an exception if there is not enough data left in the stream to fill the buffer. Note also that zero length buffers are permitted. In this case, the method will return immediately without reading any bytes from the stream.

Specified by:
readFully in interface DataInput

readFully

public void readFully(byte[] data,
                      int offset,
                      int size)
               throws IOException
Description copied from interface: DataInput
This method reads raw bytes into the passed array buf starting offset bytes into the buffer. The number of bytes read will be exactly len. Note that this method blocks until the data is available and throws an exception if there is not enough data left in the stream to read len bytes. Note also that zero length buffers are permitted. In this case, the method will return immediately without reading any bytes from the stream.

Specified by:
readFully in interface DataInput

skipBytes

public int skipBytes(int len)
              throws IOException
Description copied from interface: DataInput
This method skips and discards the specified number of bytes in an input stream. Note that this method may skip less than the requested number of bytes. The actual number of bytes skipped is returned. No bytes are skipped if a negative number is passed to this method.

Specified by:
skipBytes in interface DataInput

readLine

public java.lang.String readLine()
                          throws IOException
Deprecated.  

Description copied from interface: DataInput
This method reads the next line of text data from an input stream. It operates by reading bytes and converting those bytes to char values by treating the byte read as the low eight bits of the char and using 0 as the high eight bits. Because of this, it does not support the full 16-bit Unicode character set.

The reading of bytes ends when either the end of file or a line terminator is encountered. The bytes read are then returned as a String. A line terminator is a byte sequence consisting of either \r, \n or \r\n. These termination charaters are discarded and are not returned as part of the string. A line is also terminated by an end of file condition.

Specified by:
readLine in interface DataInput

readUTF

public java.lang.String readUTF()
                         throws IOException
Description copied from interface: DataInput
This method reads a String from an input stream that is encoded in a modified UTF-8 format. This format has a leading two byte sequence that contains the remaining number of bytes to read. This two byte sequence is read using the readUnsignedShort() method of this interface. After the number of remaining bytes have been determined, these bytes are read an transformed into char values. These char values are encoded in the stream using either a one, two, or three byte format. The particular format in use can be determined by examining the first byte read.

If the first byte has a high order bit of 0, then that character consists on only one byte. This character value consists of seven bits that are at positions 0 through 6 of the byte. As an example, if byte1 is the byte read from the stream, it would be converted to a char like so:

(char)byte1

If the first byte has 110 as its high order bits, then the character consists of two bytes. The bits that make up the character value are in positions 0 through 4 of the first byte and bit positions 0 through 5 of the second byte. (The second byte should have 10 as its high order bits). These values are in most significant byte first (i.e., "big endian") order.

As an example, if byte1 and byte2 are the first two bytes read respectively, and the high order bits of them match the patterns which indicate a two byte character encoding, then they would be converted to a Java char like so:

(char)(((byte1 & 0x1F) << 6) + (byte2 & 0x3F))

If the first byte has a 1110 as its high order bits, then the character consists of three bytes. The bits that make up the character value are in positions 0 through 3 of the first byte and bit positions 0 through 5 of the other two bytes. (The second and third bytes should have 10 as their high order bits). These values are in most significant byte first (i.e., "big endian") order.

As an example, if byte1, byte2, and byte3 are the three bytes read, and the high order bits of them match the patterns which indicate a three byte character encoding, then they would be converted to a Java char like so: (char)(((byte1 & 0x0F) << 12) + ((byte2 & 0x3F) + (byte3 & 0x3F)) Note that all characters are encoded in the method that requires the fewest number of bytes with the exception of the character with the value of \<llll>u0000 which is encoded as two bytes. This is a modification of the UTF standard used to prevent C language style NUL values from appearing in the byte stream.

This method can read data that was written by an object implementing the writeUTF() method in DataOutput.

Specified by:
readUTF in interface DataInput

readFields

public ObjectInputStream.GetField readFields()
                                      throws IOException,
                                             java.lang.ClassNotFoundException,
                                             NotActiveException
This method should be called by a method called 'readObject' in the deserializing class (if present). It cannot (and should not)be called outside of it. Its goal is to read all fields in the real input stream and keep them accessible through the ObjectInputStream.GetField class. Calling this method will not alter the deserializing object.


readObjectOverride

protected java.lang.Object readObjectOverride()
                                       throws java.lang.ClassNotFoundException,
                                              IOException,
                                              OptionalDataException
This method allows subclasses to override the default de serialization mechanism provided by ObjectInputStream. To make this method be used for writing objects, subclasses must invoke the 0-argument constructor on this class from their constructor.


assignNewHandle

private int assignNewHandle(java.lang.Object obj)
Assigns the next available handle to obj.


processResolution

private java.lang.Object processResolution(ObjectStreamClass osc,
                                           java.lang.Object obj,
                                           int handle)
                                    throws IOException

clearHandles

private void clearHandles()

readNextBlock

private void readNextBlock()
                    throws IOException

readNextBlock

private void readNextBlock(byte marker)
                    throws IOException

readArrayElements

private void readArrayElements(java.lang.Object array,
                               java.lang.Class clazz)
                        throws java.lang.ClassNotFoundException,
                               IOException

readFields

private void readFields(java.lang.Object obj,
                        ObjectStreamClass stream_osc)
                 throws java.lang.ClassNotFoundException,
                        IOException

setBlockDataMode

private boolean setBlockDataMode(boolean on)

newObject

private java.lang.Object newObject(java.lang.Class real_class,
                                   java.lang.reflect.Constructor constructor)
                            throws java.lang.ClassNotFoundException,
                                   IOException

invokeValidators

private void invokeValidators()
                       throws InvalidObjectException

callReadMethod

private void callReadMethod(java.lang.reflect.Method readObject,
                            java.lang.Class klass,
                            java.lang.Object obj)
                     throws java.lang.ClassNotFoundException,
                            IOException

dumpElement

private void dumpElement(java.lang.String msg)

dumpElementln

private void dumpElementln(java.lang.String msg)