|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| 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 |
|---|
ObjectInputStream.GetField |
| Field Summary |
|---|
| 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 ObjectStreamClass |
readClassDescriptor()
|
double |
readDouble()
|
abstract ObjectInputStream.GetField |
readFields()
|
float |
readFloat()
|
void |
readFully(byte[] buf)
|
void |
readFully(byte[] buf,
int off,
int len)
|
int |
readInt()
|
String |
readLine()
Deprecated. |
long |
readLong()
|
protected Object |
readObjectOverride()
|
short |
readShort()
|
protected void |
readStreamHeader()
|
Object |
readUnshared()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
abstract void |
registerValidation(ObjectInputValidation obj,
int prio)
|
void |
reset()
|
protected Class<?> |
resolveClass(ObjectStreamClass desc)
|
protected Object |
resolveObject(Object obj)
|
protected Class<?> |
resolveProxyClass(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 IOException,
SecurityException
input - the delegate unmarshaller
IOException - if an I/O error occurs
SecurityException - if the caller does not have permission to construct an instance of this class| Method Detail |
|---|
protected Object readObjectOverride()
throws IOException,
ClassNotFoundException
readObjectOverride in class ObjectInputStreamIOException
ClassNotFoundException
public Object readUnshared()
throws IOException,
ClassNotFoundException
readUnshared in class ObjectInputStreamIOException
ClassNotFoundException
public int read()
throws IOException
read in interface ObjectInputread in interface ByteInputread in class ObjectInputStreamIOException - if an error occurs
public int read(byte[] buf)
throws IOException
read in interface ObjectInputread in interface ByteInputread in class InputStreambuf - the destination array
IOException - if an error occurs
public int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ObjectInputread in interface ByteInputread in class 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
IOException - if an error occurs
public int available()
throws IOException
available in interface ObjectInputavailable in interface ByteInputavailable in class ObjectInputStreamIOException - if an error occurs
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOException
public byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOException
public char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOException
public short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOException
public int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOException
public long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOException
public float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOException
public double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOException
public void readFully(byte[] buf)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public void readFully(byte[] buf,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOException
@Deprecated
public String readLine()
throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOException
public String readUTF()
throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOException
public long skip(long n)
throws 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 ObjectInputskip in interface ByteInputskip in class InputStreamn - the number of bytes to attempt to skip
IOException - if an error occurspublic final void mark(int readlimit)
mark in class InputStream
public final void reset()
throws IOException
reset in class InputStreamIOExceptionpublic final boolean markSupported()
markSupported in class InputStream
public final void close()
throws IllegalStateException
close in interface Closeableclose in interface ObjectInputclose in class ObjectInputStreamIllegalStateException
protected final Class<?> resolveClass(ObjectStreamClass desc)
throws IllegalStateException
resolveClass in class ObjectInputStreamIllegalStateException
protected final Class<?> resolveProxyClass(String[] interfaces)
throws IllegalStateException
resolveProxyClass in class ObjectInputStreamIllegalStateException
protected final Object resolveObject(Object obj)
throws IllegalStateException
resolveObject in class ObjectInputStreamIllegalStateException
protected final boolean enableResolveObject(boolean enable)
throws IllegalStateException
enableResolveObject in class ObjectInputStreamIllegalStateException
protected final void readStreamHeader()
throws IllegalStateException
readStreamHeader in class ObjectInputStreamIllegalStateException
protected final ObjectStreamClass readClassDescriptor()
throws IllegalStateException
readClassDescriptor in class ObjectInputStreamIllegalStateException
public abstract void defaultReadObject()
throws IOException,
ClassNotFoundException
defaultReadObject in class ObjectInputStreamIOException
ClassNotFoundException
public abstract ObjectInputStream.GetField readFields()
throws IOException,
ClassNotFoundException
readFields in class ObjectInputStreamIOException
ClassNotFoundException
public abstract void registerValidation(ObjectInputValidation obj,
int prio)
throws NotActiveException,
InvalidObjectException
registerValidation in class ObjectInputStreamNotActiveException
InvalidObjectException
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||