| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private BlockUnmarshaller | |
| private final ArrayList | |
| private final PrivilegedExceptionAction | |
| private int | |
| private final ArrayList | |
| private RiverObjectInputStream | |
| private static final Field | |
| private static final long | |
| private final SerializableClassRegistry | |
| private static final Object | |
| private SortedSet | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | RiverUnmarshaller(final RiverMarshallerFactory marshallerFactory, final SerializableClassRegistry registry, final MarshallingConfiguration configuration)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | clearClassCache()
Implements org. |
| public void | clearInstanceCache()
Implements org. |
| public void | close()
Overrides org. Implements java. |
| private RiverObjectInputStream | |
| protected void | |
| private Object | doInitSerializable(Object obj, final SerializableClassDescriptor descriptor, final boolean discardMissing)
|
| private Object | |
| private Object | |
| private Object | |
| private Object | |
| pack-priv ClassDescriptor | |
| pack-priv Object | doReadCollectionObject(final boolean unshared, final int idx, final int size, final boolean discardMissing)
|
| private Object | |
| private Object | |
| private Object | |
| private Object | |
| pack-priv Object | doReadMapObject(final boolean unshared, final int idx, final int size, final boolean key, final boolean discardMissing)
|
| pack-priv Object | |
| protected Object | |
| protected Object | doReadObject(final boolean
true if the instance should be unshared, false if it is sharedImplements abstract org. |
| pack-priv Object | |
| pack-priv Object | |
| private Object | doReadObjectArray(final int cnt, final Class<?> type, final boolean unshared, final boolean discardMissing)
|
| private Object | |
| private Object | |
| public void | finish()
Overrides org. Implements org. |
| private BlockUnmarshaller | |
| private RiverObjectInputStream | |
| private Object | readCollectionData(final boolean unshared, int cacheIdx, final int len, final Collection<E> target, final boolean discardMissing)
|
| protected void | readFields(final Object obj, final SerializableClassDescriptor descriptor, final boolean discardMissing)
|
| private Object | readMapData(final boolean unshared, int cacheIdx, final int len, final Map<K, V> target, final boolean discardMissing)
|
| private Object | readSortedMapData(final boolean unshared, int cacheIdx, final int len, final SortedMap<K, V> target, final boolean discardMissing)
|
| private Object | readSortedSetData(final boolean unshared, int cacheIdx, final int len, final SortedSet<E> target, final boolean discardMissing)
|
| protected String | |
| public String | readUTF()
Overrides org. Implements java. |
| private Object | |
| private static Enum | |
| private static InvalidObjectException | |
| public void | start(final ByteInput
the new stream byteInput)Overrides org. Implements org. |
| blockUnmarshaller | back to summary |
|---|---|
| private BlockUnmarshaller blockUnmarshaller | |
| classCache | back to summary |
|---|---|
| private final ArrayList<ClassDescriptor> classCache | |
| createObjectInputStreamAction | back to summary |
|---|---|
| private final PrivilegedExceptionAction<RiverObjectInputStream> createObjectInputStreamAction | |
| depth | back to summary |
|---|---|
| private int depth | |
| instanceCache | back to summary |
|---|---|
| private final ArrayList<Object> instanceCache | |
| objectInputStream | back to summary |
|---|---|
| private RiverObjectInputStream objectInputStream | |
| proxyInvocationHandler | back to summary |
|---|---|
| private static final Field proxyInvocationHandler | |
| proxyInvocationHandlerOffset | back to summary |
|---|---|
| private static final long proxyInvocationHandlerOffset | |
| registry | back to summary |
|---|---|
| private final SerializableClassRegistry registry | |
| UNRESOLVED | back to summary |
|---|---|
| private static final Object UNRESOLVED | |
| validators | back to summary |
|---|---|
| private SortedSet<Validator> validators | |
| validatorSeq | back to summary |
|---|---|
| private int validatorSeq | |
| version | back to summary |
|---|---|
| private int version | |
| RiverUnmarshaller | back to summary |
|---|---|
| protected RiverUnmarshaller(final RiverMarshallerFactory marshallerFactory, final SerializableClassRegistry registry, final MarshallingConfiguration configuration) | |
| addValidation | back to summary |
|---|---|
| pack-priv void addValidation(final ObjectInputValidation validation, final int prio) | |
| clearClassCache | back to summary |
|---|---|
| public void clearClassCache() throws IOException Implements org. Doc from org. Discard the class cache. Implicitly also discards the instance cache.
| |
| clearInstanceCache | back to summary |
|---|---|
| public void clearInstanceCache() throws IOException Implements org. Doc from org. Discard the instance cache.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Doc from java. Closes the input stream. Must be called to release any resources associated with the stream.
| |
| createObjectInputStream | back to summary |
|---|---|
| private RiverObjectInputStream createObjectInputStream() throws IOException | |
| discardFields | back to summary |
|---|---|
| protected void discardFields(final SerializableClassDescriptor descriptor) throws IOException | |
| doInitSerializable | back to summary |
|---|---|
| private Object doInitSerializable(Object obj, final SerializableClassDescriptor descriptor, final boolean discardMissing) throws IOException, ClassNotFoundException | |
| doReadArray | back to summary |
|---|---|
| private Object doReadArray(final int cnt, final boolean unshared, final boolean discardMissing) throws ClassNotFoundException, IOException | |
| doReadBooleanArray | back to summary |
|---|---|
| private Object doReadBooleanArray(final int cnt, final boolean unshared) throws IOException | |
| doReadByteArray | back to summary |
|---|---|
| private Object doReadByteArray(final int cnt, final boolean unshared) throws IOException | |
| doReadCharArray | back to summary |
|---|---|
| private Object doReadCharArray(final int cnt, final boolean unshared) throws IOException | |
| doReadClassDescriptor | back to summary |
|---|---|
| pack-priv ClassDescriptor doReadClassDescriptor(final int classType, final boolean required) throws IOException, ClassNotFoundException | |
| doReadCollectionObject | back to summary |
|---|---|
| pack-priv Object doReadCollectionObject(final boolean unshared, final int idx, final int size, final boolean discardMissing) throws ClassNotFoundException, IOException | |
| doReadDoubleArray | back to summary |
|---|---|
| private Object doReadDoubleArray(final int cnt, final boolean unshared) throws IOException | |
| doReadFloatArray | back to summary |
|---|---|
| private Object doReadFloatArray(final int cnt, final boolean unshared) throws IOException | |
| doReadIntArray | back to summary |
|---|---|
| private Object doReadIntArray(final int cnt, final boolean unshared) throws IOException | |
| doReadLongArray | back to summary |
|---|---|
| private Object doReadLongArray(final int cnt, final boolean unshared) throws IOException | |
| doReadMapObject | back to summary |
|---|---|
| pack-priv Object doReadMapObject(final boolean unshared, final int idx, final int size, final boolean key, final boolean discardMissing) throws ClassNotFoundException, IOException | |
| doReadNestedObject | back to summary |
|---|---|
| pack-priv Object doReadNestedObject(final boolean unshared, final String enclosingClassName) throws ClassNotFoundException, IOException | |
| doReadNewObject | back to summary |
|---|---|
| protected Object doReadNewObject(final int streamClassType, final boolean unshared, final boolean discardMissing) throws ClassNotFoundException, IOException | |
| doReadObject | back to summary |
|---|---|
| protected Object doReadObject(final boolean unshared) throws ClassNotFoundException, IOException Implements abstract org. Doc from org. Implementation of the actual object-reading method.
| |
| doReadObject | back to summary |
|---|---|
| pack-priv Object doReadObject(final boolean unshared, final boolean discardMissing) throws IOException, ClassNotFoundException | |
| doReadObject | back to summary |
|---|---|
pack-priv Object doReadObject(int leadByte, final boolean unshared, final boolean discardMissing) throws IOException, ClassNotFoundException
| |
| doReadObjectArray | back to summary |
|---|---|
| private Object doReadObjectArray(final int cnt, final Class<?> type, final boolean unshared, final boolean discardMissing) throws ClassNotFoundException, IOException | |
| doReadRecord | back to summary |
|---|---|
| private Object doReadRecord(SerializableClass info, boolean discardMissing) throws IOException, ClassNotFoundException | |
| doReadShortArray | back to summary |
|---|---|
| private Object doReadShortArray(final int cnt, final boolean unshared) throws IOException | |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Overrides org. Implements org. Doc from org. Finish unmarshalling from a stream. Any transient class or instance cache is discarded.
| |
| getBlockUnmarshaller | back to summary |
|---|---|
| private BlockUnmarshaller getBlockUnmarshaller() | |
| getObjectInputStream | back to summary |
|---|---|
| private RiverObjectInputStream getObjectInputStream() throws IOException | |
| readCollectionData | back to summary |
|---|---|
private Object readCollectionData(final boolean unshared, int cacheIdx, final int len, final Collection<E> target, final boolean discardMissing) throws ClassNotFoundException, IOException
| |
| readFields | back to summary |
|---|---|
| protected void readFields(final Object obj, final SerializableClassDescriptor descriptor, final boolean discardMissing) throws IOException, ClassNotFoundException | |
| readMapData | back to summary |
|---|---|
private Object readMapData(final boolean unshared, int cacheIdx, final int len, final Map<K, V> target, final boolean discardMissing) throws ClassNotFoundException, IOException
| |
| readSortedMapData | back to summary |
|---|---|
private Object readSortedMapData(final boolean unshared, int cacheIdx, final int len, final SortedMap<K, V> target, final boolean discardMissing) throws ClassNotFoundException, IOException
| |
| readSortedSetData | back to summary |
|---|---|
private Object readSortedSetData(final boolean unshared, int cacheIdx, final int len, final SortedSet<E> target, final boolean discardMissing) throws ClassNotFoundException, IOException
| |
| readString | back to summary |
|---|---|
| protected String readString() throws IOException | |
| readUTF | back to summary |
|---|---|
| public String readUTF() throws IOException Overrides org. Implements java. Doc from java. Reads in a string that has been encoded using a
modified UTF-8
format.
The general contract of
First, two bytes are read and used to
construct an unsigned 16-bit integer in
exactly the manner of the
If the first byte of a group
matches the bit pattern
If the first byte
of a group matches the bit pattern
If the first byte of a group
matches the bit pattern 1110xxxx,
then the group consists of that byte a
and two more bytes b and c.
If there is no byte c (because
byte a was one of the last
two of the bytes to be read), or either
byte b or byte c
does not match the bit pattern 10xxxxxx,
then a UTFDataFormatException
is thrown. Otherwise, the group is converted
to the character:
If the first byte of a group matches the
pattern 1111xxxx or the pattern
10xxxxxx, then a UTFDataFormatException
is thrown.
If end of file is encountered
at any time during this entire process,
then an
After every group has been converted to
a character by this process, the characters
are gathered, in the same order in which
their corresponding groups were read from
the input stream, to form a
The
| |
| replace | back to summary |
|---|---|
| private Object replace(Object object) | |
| resolveEnumConstant | back to summary |
|---|---|
private static Enum
| |
| sharedMismatch | back to summary |
|---|---|
| private static InvalidObjectException sharedMismatch() | |
| start | back to summary |
|---|---|
| public void start(final ByteInput byteInput) throws IOException Overrides org. Implements org. Doc from org. Begin unmarshalling from a stream.
| |
| Access | Constructor and Description |
|---|---|
| private |
| unsafe | back to summary |
|---|---|
| private static final Unsafe unsafe | |
| UnsafeHolder | back to summary |
|---|---|
| private UnsafeHolder() | |