Package org.jboss.marshalling.serial
Class Serial
- java.lang.Object
-
- org.jboss.marshalling.serial.Serial
-
- All Implemented Interfaces:
java.io.ObjectStreamConstants
,ExtendedObjectStreamConstants
public final class Serial extends java.lang.Object implements ExtendedObjectStreamConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Serial.ClassInfo
private static class
Serial.FieldInfo
private static class
Serial.FieldType
-
Field Summary
-
Fields inherited from interface org.jboss.marshalling.serial.ExtendedObjectStreamConstants
TC_CLASSTABLEDESC, TC_OBJECTTABLE
-
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Serial()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
dumpBlockData(java.util.Map<java.lang.Integer,Serial.ClassInfo> map, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth)
private static void
dumpContent(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte)
private static Serial.ClassInfo
dumpDescriptor(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte)
private static void
dumpFields(Serial.ClassInfo info, java.util.Map<java.lang.Integer,Serial.ClassInfo> map, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth)
private static void
dumpObject(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte)
private static void
dumpStream(java.io.DataInputStream serializedData, java.io.BufferedWriter destination)
static void
dumpStream(java.io.InputStream serializedData, java.io.Writer destination)
private static void
dumpString(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte)
private static void
printf(java.io.BufferedWriter w, int depth, java.lang.String format, java.lang.Object... args)
-
-
-
Method Detail
-
dumpStream
public static void dumpStream(java.io.InputStream serializedData, java.io.Writer destination) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpStream
private static void dumpStream(java.io.DataInputStream serializedData, java.io.BufferedWriter destination) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpContent
private static void dumpContent(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpObject
private static void dumpObject(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpString
private static void dumpString(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpFields
private static void dumpFields(Serial.ClassInfo info, java.util.Map<java.lang.Integer,Serial.ClassInfo> map, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpBlockData
private static void dumpBlockData(java.util.Map<java.lang.Integer,Serial.ClassInfo> map, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth) throws java.io.IOException
- Throws:
java.io.IOException
-
dumpDescriptor
private static Serial.ClassInfo dumpDescriptor(java.util.Map<java.lang.Integer,Serial.ClassInfo> descrMap, java.util.concurrent.atomic.AtomicInteger seq, java.io.DataInputStream dis, java.io.BufferedWriter w, int depth, int leadByte) throws java.io.IOException
- Throws:
java.io.IOException
-
printf
private static void printf(java.io.BufferedWriter w, int depth, java.lang.String format, java.lang.Object... args) throws java.io.IOException
- Throws:
java.io.IOException
-
-