edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.core.util
Class CustomObjectInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ObjectInputStream
          extended by edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.core.util.CustomObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants

public class CustomObjectInputStream
extends ObjectInputStream


Nested Class Summary
static interface CustomObjectInputStream.StreamCallback
           
 
Nested classes/interfaces inherited from class java.io.ObjectInputStream
ObjectInputStream.GetField
 
Field Summary
 
Fields inherited from interface java.io.ObjectStreamConstants
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 Summary
CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback)
          Warning, this object is expensive to create (due to functionality inherited from superclass).
 
Method Summary
 int available()
          Unsupported methods
 void close()
           
 void defaultReadObject()
           
static CustomObjectInputStream getInstance(DataHolder whereFrom, CustomObjectInputStream.StreamCallback callback)
           
 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()
           
 ObjectInputStream.GetField readFields()
           
 float readFloat()
           
 void readFully(byte[] buf)
           
 void readFully(byte[] buf, int off, int len)
           
 int readInt()
           
 String readLine()
           
 long readLong()
           
protected  Object readObjectOverride()
           
 short readShort()
           
 Object readUnshared()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 String readUTF()
           
 void registerValidation(ObjectInputValidation validation, int priority)
           
 void reset()
           
 long skip(long n)
           
 int skipBytes(int len)
           
 
Methods inherited from class java.io.ObjectInputStream
enableResolveObject, readClassDescriptor, readObject, readStreamHeader, resolveClass, resolveObject, resolveProxyClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomObjectInputStream

public CustomObjectInputStream(CustomObjectInputStream.StreamCallback callback)
                        throws IOException,
                               SecurityException
Warning, this object is expensive to create (due to functionality inherited from superclass). Use the static fetch() method instead, wherever possible.

Throws:
IOException
SecurityException
See Also:
#getInstance(edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.converters.DataHolder, com.thoughtworks.xstream.core.util.CustomObjectInputStream.StreamCallback)
Method Detail

getInstance

public static CustomObjectInputStream getInstance(DataHolder whereFrom,
                                                  CustomObjectInputStream.StreamCallback callback)

pushCallback

public void pushCallback(CustomObjectInputStream.StreamCallback callback)
Allows the CustomObjectInputStream (which is expensive to create) to be reused.


popCallback

public CustomObjectInputStream.StreamCallback popCallback()

peekCallback

public CustomObjectInputStream.StreamCallback peekCallback()

defaultReadObject

public void defaultReadObject()
                       throws IOException
Overrides:
defaultReadObject in class ObjectInputStream
Throws:
IOException

readObjectOverride

protected Object readObjectOverride()
                             throws IOException
Overrides:
readObjectOverride in class ObjectInputStream
Throws:
IOException

readUnshared

public Object readUnshared()
                    throws IOException,
                           ClassNotFoundException
Overrides:
readUnshared in class ObjectInputStream
Throws:
IOException
ClassNotFoundException

readBoolean

public boolean readBoolean()
                    throws IOException
Specified by:
readBoolean in interface DataInput
Overrides:
readBoolean in class ObjectInputStream
Throws:
IOException

readByte

public byte readByte()
              throws IOException
Specified by:
readByte in interface DataInput
Overrides:
readByte in class ObjectInputStream
Throws:
IOException

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
Specified by:
readUnsignedByte in interface DataInput
Overrides:
readUnsignedByte in class ObjectInputStream
Throws:
IOException

readInt

public int readInt()
            throws IOException
Specified by:
readInt in interface DataInput
Overrides:
readInt in class ObjectInputStream
Throws:
IOException

readChar

public char readChar()
              throws IOException
Specified by:
readChar in interface DataInput
Overrides:
readChar in class ObjectInputStream
Throws:
IOException

readFloat

public float readFloat()
                throws IOException
Specified by:
readFloat in interface DataInput
Overrides:
readFloat in class ObjectInputStream
Throws:
IOException

readDouble

public double readDouble()
                  throws IOException
Specified by:
readDouble in interface DataInput
Overrides:
readDouble in class ObjectInputStream
Throws:
IOException

readLong

public long readLong()
              throws IOException
Specified by:
readLong in interface DataInput
Overrides:
readLong in class ObjectInputStream
Throws:
IOException

readShort

public short readShort()
                throws IOException
Specified by:
readShort in interface DataInput
Overrides:
readShort in class ObjectInputStream
Throws:
IOException

readUnsignedShort

public int readUnsignedShort()
                      throws IOException
Specified by:
readUnsignedShort in interface DataInput
Overrides:
readUnsignedShort in class ObjectInputStream
Throws:
IOException

readUTF

public String readUTF()
               throws IOException
Specified by:
readUTF in interface DataInput
Overrides:
readUTF in class ObjectInputStream
Throws:
IOException

readFully

public void readFully(byte[] buf)
               throws IOException
Specified by:
readFully in interface DataInput
Overrides:
readFully in class ObjectInputStream
Throws:
IOException

readFully

public void readFully(byte[] buf,
                      int off,
                      int len)
               throws IOException
Specified by:
readFully in interface DataInput
Overrides:
readFully in class ObjectInputStream
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in interface ObjectInput
Overrides:
read in class ObjectInputStream
Throws:
IOException

read

public int read(byte[] buf,
                int off,
                int len)
         throws IOException
Specified by:
read in interface ObjectInput
Overrides:
read in class ObjectInputStream
Throws:
IOException

read

public int read(byte[] b)
         throws IOException
Specified by:
read in interface ObjectInput
Overrides:
read in class InputStream
Throws:
IOException

readFields

public ObjectInputStream.GetField readFields()
                                      throws IOException
Overrides:
readFields in class ObjectInputStream
Throws:
IOException

registerValidation

public void registerValidation(ObjectInputValidation validation,
                               int priority)
                        throws NotActiveException,
                               InvalidObjectException
Overrides:
registerValidation in class ObjectInputStream
Throws:
NotActiveException
InvalidObjectException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface ObjectInput
Overrides:
close in class ObjectInputStream
Throws:
IOException

available

public int available()
Unsupported methods

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

readLine

public String readLine()
Specified by:
readLine in interface DataInput
Overrides:
readLine in class ObjectInputStream

skipBytes

public int skipBytes(int len)
Specified by:
skipBytes in interface DataInput
Overrides:
skipBytes in class ObjectInputStream

skip

public long skip(long n)
Specified by:
skip in interface ObjectInput
Overrides:
skip in class InputStream

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream

reset

public void reset()
Overrides:
reset in class InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream


Copyright © 2012 Internet2. All Rights Reserved.