|
JBoss Marshalling 1.3.0.GA | |||||||||
| 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.jboss.marshalling.MarshallerObjectInputStream
public abstract class MarshallerObjectInputStream

A marshaller's object input stream. Used by marshallers for compatibility with Java serialization. Instances of
this class may be passed in to the overridden serialization methods for a class implementing Serializable.
This class is not part of the marshalling API; rather it is intended for marshaller implementers to make it easier to develop Java serialization-compatible marshallers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectInputStream |
|---|
java.io.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 | |
|---|---|
protected |
MarshallerObjectInputStream(Unmarshaller input)
Construct a new instance which delegates to the given unmarshaller. |
| Method Summary | |
|---|---|
int |
available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
void |
close()
|
abstract void |
defaultReadObject()
|
protected boolean |
enableResolveObject(boolean enable)
|
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] buf)
Read some bytes from the input stream into the given array. |
int |
read(byte[] buf,
int off,
int len)
Read some bytes from the input stream into the given array. |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
protected java.io.ObjectStreamClass |
readClassDescriptor()
|
double |
readDouble()
|
abstract 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()
Deprecated. |
long |
readLong()
|
protected java.lang.Object |
readObjectOverride()
|
short |
readShort()
|
protected void |
readStreamHeader()
|
java.lang.Object |
readUnshared()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
java.lang.String |
readUTF()
|
abstract void |
registerValidation(java.io.ObjectInputValidation obj,
int prio)
|
void |
reset()
|
protected java.lang.Class<?> |
resolveClass(java.io.ObjectStreamClass desc)
|
protected java.lang.Object |
resolveObject(java.lang.Object obj)
|
protected java.lang.Class<?> |
resolveProxyClass(java.lang.String[] interfaces)
|
long |
skip(long n)
Skips over and discards up to n bytes of data from this input stream. |
int |
skipBytes(int len)
|
| Methods inherited from class java.io.ObjectInputStream |
|---|
readObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MarshallerObjectInputStream(Unmarshaller input)
throws java.io.IOException,
java.lang.SecurityException
input - the delegate unmarshaller
java.io.IOException - if an I/O error occurs
java.lang.SecurityException - if the caller does not have permission to construct an instance of this class| Method Detail |
|---|
protected java.lang.Object readObjectOverride()
throws java.io.IOException,
java.lang.ClassNotFoundException
readObjectOverride in class java.io.ObjectInputStreamjava.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object readUnshared()
throws java.io.IOException,
java.lang.ClassNotFoundException
readUnshared in class java.io.ObjectInputStreamjava.io.IOException
java.lang.ClassNotFoundException
public int read()
throws java.io.IOException
read in interface java.io.ObjectInputread in interface ByteInputread in class java.io.ObjectInputStreamjava.io.IOException - if an error occurs
public int read(byte[] buf)
throws java.io.IOException
read in interface java.io.ObjectInputread in interface ByteInputread in class java.io.InputStreambuf - the destination array
java.io.IOException - if an error occurs
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in interface java.io.ObjectInputread in interface ByteInputread in class java.io.ObjectInputStreambuf - the destination arrayoff - the offset into the array into which data should be readlen - the number of bytes to attempt to fill in the destination array
java.io.IOException - if an error occurs
public int available()
throws java.io.IOException
available in interface java.io.ObjectInputavailable in interface ByteInputavailable in class java.io.ObjectInputStreamjava.io.IOException - if an error occurs
public boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputreadBoolean in class java.io.ObjectInputStreamjava.io.IOException
public byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputreadByte in class java.io.ObjectInputStreamjava.io.IOException
public int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputreadUnsignedByte in class java.io.ObjectInputStreamjava.io.IOException
public char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputreadChar in class java.io.ObjectInputStreamjava.io.IOException
public short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputreadShort in class java.io.ObjectInputStreamjava.io.IOException
public int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface java.io.DataInputreadUnsignedShort in class java.io.ObjectInputStreamjava.io.IOException
public int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputreadInt in class java.io.ObjectInputStreamjava.io.IOException
public long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputreadLong in class java.io.ObjectInputStreamjava.io.IOException
public float readFloat()
throws java.io.IOException
readFloat in interface java.io.DataInputreadFloat in class java.io.ObjectInputStreamjava.io.IOException
public double readDouble()
throws java.io.IOException
readDouble in interface java.io.DataInputreadDouble in class java.io.ObjectInputStreamjava.io.IOException
public void readFully(byte[] buf)
throws java.io.IOException
readFully in interface java.io.DataInputreadFully in class java.io.ObjectInputStreamjava.io.IOException
public void readFully(byte[] buf,
int off,
int len)
throws java.io.IOException
readFully in interface java.io.DataInputreadFully in class java.io.ObjectInputStreamjava.io.IOException
public int skipBytes(int len)
throws java.io.IOException
skipBytes in interface java.io.DataInputskipBytes in class java.io.ObjectInputStreamjava.io.IOException
@Deprecated
public java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputreadLine in class java.io.ObjectInputStreamjava.io.IOException
public java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputreadUTF in class java.io.ObjectInputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
n bytes of data from this input stream. If the end of stream is reached,
this method returns 0 in order to be consistent with InputStream.skip(long).
skip in interface java.io.ObjectInputskip in interface ByteInputskip in class java.io.InputStreamn - the number of bytes to attempt to skip
java.io.IOException - if an error occurspublic final void mark(int readlimit)
mark in class java.io.InputStream
public final void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic final boolean markSupported()
markSupported in class java.io.InputStream
public final void close()
throws java.lang.IllegalStateException
close in interface java.io.Closeableclose in interface java.io.ObjectInputclose in class java.io.ObjectInputStreamjava.lang.IllegalStateException
protected final java.lang.Class<?> resolveClass(java.io.ObjectStreamClass desc)
throws java.lang.IllegalStateException
resolveClass in class java.io.ObjectInputStreamjava.lang.IllegalStateException
protected final java.lang.Class<?> resolveProxyClass(java.lang.String[] interfaces)
throws java.lang.IllegalStateException
resolveProxyClass in class java.io.ObjectInputStreamjava.lang.IllegalStateException
protected final java.lang.Object resolveObject(java.lang.Object obj)
throws java.lang.IllegalStateException
resolveObject in class java.io.ObjectInputStreamjava.lang.IllegalStateException
protected final boolean enableResolveObject(boolean enable)
throws java.lang.IllegalStateException
enableResolveObject in class java.io.ObjectInputStreamjava.lang.IllegalStateException
protected final void readStreamHeader()
throws java.lang.IllegalStateException
readStreamHeader in class java.io.ObjectInputStreamjava.lang.IllegalStateException
protected final java.io.ObjectStreamClass readClassDescriptor()
throws java.lang.IllegalStateException
readClassDescriptor in class java.io.ObjectInputStreamjava.lang.IllegalStateException
public abstract void defaultReadObject()
throws java.io.IOException,
java.lang.ClassNotFoundException
defaultReadObject in class java.io.ObjectInputStreamjava.io.IOException
java.lang.ClassNotFoundException
public abstract java.io.ObjectInputStream.GetField readFields()
throws java.io.IOException,
java.lang.ClassNotFoundException
readFields in class java.io.ObjectInputStreamjava.io.IOException
java.lang.ClassNotFoundException
public abstract void registerValidation(java.io.ObjectInputValidation obj,
int prio)
throws java.io.NotActiveException,
java.io.InvalidObjectException
registerValidation in class java.io.ObjectInputStreamjava.io.NotActiveException
java.io.InvalidObjectException
|
JBoss Marshalling 1.3.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||