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 ClassExternalizerFactoryThe configured class externalizer factory.protected final ClassResolverThe configured class resolver.protected final ClassTableThe configured class table.protected final intThe configured version.protected final ExceptionListenerThe configured exception listener.protected final ObjectResolverThe configured object pre resolver.protected final ObjectResolverThe configured object resolver.protected final ObjectTableThe configured object table.protected final SerializabilityCheckerThe configured serializability checker.protected final StreamHeaderThe configured stream header.Fields inherited from class SimpleDataInput
buffer, limit, positionFields inherited from class ByteInputStream
byteInput -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration) Construct a new unmarshaller instance. -
Method Summary
Methods inherited from class AbstractObjectInput
doReadObject, readObject, readObject, readObjectUnshared, readObjectUnsharedMethods inherited from class SimpleDataInput
available, close, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytesMethods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferToMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesMethods inherited from interface ObjectInput
available, close, read, read, read, readObject, skipMethods inherited from interface 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:
startin interfaceUnmarshaller- Overrides:
startin 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:
finishin interfaceUnmarshaller- Overrides:
finishin classSimpleDataInput- Throws:
IOException- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-