|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.AbstractUnmarshaller
public abstract class AbstractUnmarshaller

An abstract implementation of the Unmarshaller interface. Most of the
write methods delegate directly to the current data output.
| Field Summary | |
|---|---|
protected ByteInput |
byteInput
The current byte input. |
protected ClassExternalizerFactory |
classExternalizerFactory
The configured class externalizer factory. |
protected ClassResolver |
classResolver
The configured class resolver. |
protected ClassTable |
classTable
The configured class table. |
protected int |
configuredVersion
The configured version. |
protected Creator |
creator
The configured object creator. |
protected ExceptionListener |
exceptionListener
The configured exception listener. |
protected ObjectResolver |
objectResolver
The configured object resolver. |
protected ObjectTable |
objectTable
The configured object table. |
protected StreamHeader |
streamHeader
The configured stream header. |
| Constructor Summary | |
|---|---|
protected |
AbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory,
MarshallingConfiguration configuration)
Construct a new unmarshaller instance. |
| 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. |
protected abstract Object |
doReadObject(boolean unshared)
Implementation of the actual object-reading method. |
protected void |
doStart()
Perform any unmarshaller-specific start activity. |
void |
finish()
Finish unmarshalling from a stream. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Read some bytes from the input stream into the given array. |
int |
read(byte[] b,
int off,
int len)
Read some bytes from the input stream into the given array. |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
protected int |
readIntDirect()
|
String |
readLine()
|
long |
readLong()
|
protected long |
readLongDirect()
|
Object |
readObject()
|
Object |
readObjectUnshared()
Read and return an unshared object. |
short |
readShort()
|
int |
readUnsignedByte()
|
protected int |
readUnsignedByteDirect()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
long |
skip(long n)
Skips over and discards up to n bytes of data from this input stream. |
int |
skipBytes(int n)
|
void |
start(ByteInput byteInput)
Begin unmarshalling from a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.marshalling.Unmarshaller |
|---|
clearClassCache, clearInstanceCache |
| Methods inherited from interface java.io.ObjectInput |
|---|
close |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Field Detail |
|---|
protected final ClassExternalizerFactory classExternalizerFactory
protected final StreamHeader streamHeader
protected final ClassResolver classResolver
protected final ObjectResolver objectResolver
protected final Creator creator
protected final ClassTable classTable
protected final ObjectTable objectTable
protected final ExceptionListener exceptionListener
protected final int configuredVersion
protected ByteInput byteInput
| Constructor Detail |
|---|
protected AbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory,
MarshallingConfiguration configuration)
marshallerFactory - the marshaller factoryconfiguration - | Method Detail |
|---|
public final Object readObject()
throws ClassNotFoundException,
IOException
readObject in interface ObjectInputClassNotFoundException
IOException
public final Object readObjectUnshared()
throws ClassNotFoundException,
IOException
readObjectUnshared in interface UnmarshallerIOException - if an error occurs
ClassNotFoundException
protected abstract Object doReadObject(boolean unshared)
throws ClassNotFoundException,
IOException
unshared - true if the instance should be unshared, false if it is shared
ClassNotFoundException - if the class for the object could not be loaded
IOException - if an I/O error occurs
public int read()
throws IOException
read in interface ObjectInputread in interface ByteInputIOException - if an error occurs
public int read(byte[] b)
throws IOException
read in interface ObjectInputread in interface ByteInputb - the destination array
IOException - if an error occurs
public int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputread in interface ByteInputb - 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 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 ByteInputn - the number of bytes to attempt to skip
IOException - if an error occurs
public int available()
throws IOException
available in interface ObjectInputavailable in interface ByteInputIOException - if an error occurs
public void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOException
public void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOException
public int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOException
public byte readByte()
throws IOException
readByte in interface DataInputIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOException
public short readShort()
throws IOException
readShort in interface DataInputIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOException
protected int readUnsignedByteDirect()
throws IOException
IOException
public char readChar()
throws IOException
readChar in interface DataInputIOException
public int readInt()
throws IOException
readInt in interface DataInputIOException
public long readLong()
throws IOException
readLong in interface DataInputIOException
protected long readLongDirect()
throws IOException
IOException
public float readFloat()
throws IOException
readFloat in interface DataInputIOException
protected int readIntDirect()
throws IOException
IOException
public double readDouble()
throws IOException
readDouble in interface DataInputIOException
public String readLine()
throws IOException
readLine in interface DataInputIOException
public String readUTF()
throws IOException
readUTF in interface DataInputIOException
public void start(ByteInput byteInput)
throws IOException
start in interface UnmarshallerbyteInput - the new stream
IOException - if an error occurs during setup, such as an invalid header
public void finish()
throws IOException
finish in interface UnmarshallerIOException - if an error occurs
protected void doStart()
throws IOException
IOException - if I/O exception occurs
|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||