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
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 org.jboss.marshalling.SimpleDataInput
buffer, limit, positionFields inherited from class org.jboss.marshalling.ByteInputStream
byteInput -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration) Construct a new unmarshaller instance. -
Method Summary
Methods inherited from class org.jboss.marshalling.AbstractObjectInput
doReadObject, readObject, readObject, readObjectUnshared, readObjectUnsharedMethods 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, skipBytesMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesMethods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skipMethods 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:
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
-