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
public abstract class AbstractUnmarshaller extends AbstractObjectInput implements Unmarshaller
An abstract implementation of theUnmarshallerinterface. Most of the write methods delegate directly to the current data output.
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassExternalizerFactoryclassExternalizerFactoryThe configured class externalizer factory.protected ClassResolverclassResolverThe configured class resolver.protected ClassTableclassTableThe configured class table.protected intconfiguredVersionThe configured version.protected ExceptionListenerexceptionListenerThe configured exception listener.protected ObjectResolverobjectPreResolverThe configured object pre resolver.protected ObjectResolverobjectResolverThe configured object resolver.protected ObjectTableobjectTableThe configured object table.protected SerializabilityCheckerserializabilityCheckerThe configured serializability checker.protected StreamHeaderstreamHeaderThe 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
Constructors Modifier Constructor Description protectedAbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration)Construct a new unmarshaller instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Finish reading from the current input.voidstart(ByteInput byteInput)Start reading from the given input.-
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, 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 Detail
-
classExternalizerFactory
protected final ClassExternalizerFactory classExternalizerFactory
The configured class externalizer factory.
-
streamHeader
protected final StreamHeader streamHeader
The configured stream header.
-
classResolver
protected final ClassResolver classResolver
The configured class resolver.
-
objectResolver
protected final ObjectResolver objectResolver
The configured object resolver.
-
objectPreResolver
protected final ObjectResolver objectPreResolver
The configured object pre resolver.
-
classTable
protected final ClassTable classTable
The configured class table.
-
objectTable
protected final ObjectTable objectTable
The configured object table.
-
exceptionListener
protected final ExceptionListener exceptionListener
The configured exception listener.
-
serializabilityChecker
protected final SerializabilityChecker serializabilityChecker
The configured serializability checker.
-
configuredVersion
protected final int configuredVersion
The configured version.
-
-
Constructor Detail
-
AbstractUnmarshaller
protected AbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration)
Construct a new unmarshaller instance.- Parameters:
marshallerFactory- the marshaller factoryconfiguration-
-
-
Method Detail
-
start
public void start(ByteInput byteInput) throws IOException
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
public void finish() throws IOExceptionFinish 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
-
-