Package org.jboss.marshalling
Class AbstractUnmarshaller
java.lang.Object
java.io.InputStream
org.jboss.marshalling.SimpleByteInput
org.jboss.marshalling.ByteInputStream
org.jboss.marshalling.SimpleDataInput
org.jboss.marshalling.AbstractObjectInput
org.jboss.marshalling.AbstractUnmarshaller
- All Implemented Interfaces:
Closeable
,DataInput
,ObjectInput
,AutoCloseable
,ByteInput
,Unmarshaller
- Direct Known Subclasses:
RiverUnmarshaller
,SerialUnmarshaller
An abstract implementation of the
Unmarshaller
interface. Most of the
write methods delegate directly to the current data output.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClassExternalizerFactory
The configured class externalizer factory.protected final ClassResolver
The configured class resolver.protected final ClassTable
The configured class table.protected final int
The configured version.protected final ExceptionListener
The configured exception listener.protected final ObjectResolver
The configured object pre resolver.protected final ObjectResolver
The configured object resolver.protected final ObjectTable
The configured object table.protected final SerializabilityChecker
The configured serializability checker.protected final StreamHeader
The configured stream header.Fields inherited from class org.jboss.marshalling.SimpleDataInput
buffer, limit, position
Fields inherited from class org.jboss.marshalling.ByteInputStream
byteInput
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractUnmarshaller
(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration) Construct a new unmarshaller instance. -
Method Summary
Methods inherited from class org.jboss.marshalling.AbstractObjectInput
doReadObject, readObject, readObject, readObjectUnshared, readObjectUnshared
Methods inherited from class org.jboss.marshalling.SimpleDataInput
available, close, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytes
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Methods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skip
Methods inherited from interface org.jboss.marshalling.Unmarshaller
clearClassCache, clearInstanceCache, readObject, readObjectUnshared, readObjectUnshared
-
Field Details
-
classExternalizerFactory
The configured class externalizer factory. -
streamHeader
The configured stream header. -
classResolver
The configured class resolver. -
objectResolver
The configured object resolver. -
objectPreResolver
The configured object pre resolver. -
classTable
The configured class table. -
objectTable
The configured object table. -
exceptionListener
The configured exception listener. -
serializabilityChecker
The configured serializability checker. -
configuredVersion
protected final int configuredVersionThe configured version.
-
-
Constructor Details
-
AbstractUnmarshaller
protected AbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration) Construct a new unmarshaller instance.- Parameters:
marshallerFactory
- the marshaller factoryconfiguration
-
-
-
Method Details
-
start
Start reading from the given input. The internal buffer is discarded.- Specified by:
start
in interfaceUnmarshaller
- Overrides:
start
in classSimpleDataInput
- Parameters:
byteInput
- the new input from which to read- Throws:
IOException
- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-
finish
Finish reading from the current input. The internal buffer is discarded, not flushed.- Specified by:
finish
in interfaceUnmarshaller
- Overrides:
finish
in classSimpleDataInput
- Throws:
IOException
- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-