public class SBinarySerializer2 extends Object
Modifier and Type | Field and Description |
---|---|
static List<ITraverseProcessor> |
ENCODER_HANDLERS
Handlers for encoding.
|
Constructor and Description |
---|
SBinarySerializer2() |
Modifier and Type | Method and Description |
---|---|
static Object |
readObjectFromDataInput(DataInput di,
List<IDecoderHandler> postprocessors,
Object usercontext,
ClassLoader classloader,
IErrorReporter errorreporter)
Convert a byte array to an object.
|
static Object |
readObjectFromStream(InputStream is,
List<IDecoderHandler> postprocessors,
Object usercontext,
ClassLoader classloader,
IErrorReporter errorreporter)
Convert a byte array to an object.
|
static long |
writeObjectToDataOutput(DataOutput dato,
Object val,
ClassLoader classloader)
Convert an object to an encoded byte array.
|
static long |
writeObjectToDataOutput(DataOutput dato,
Object val,
List<ITraverseProcessor> preprocessors,
List<ITraverseProcessor> encoderhandlers,
Object usercontext,
ClassLoader classloader)
Convert an object to an encoded byte array.
|
static long |
writeObjectToDataOutput(DataOutput dato,
Object val,
List<ITraverseProcessor> preprocessors,
Object usercontext,
ClassLoader classloader)
Convert an object to an encoded byte array.
|
static long |
writeObjectToStream(OutputStream os,
Object val,
ClassLoader classloader)
Convert an object to an encoded byte array.
|
static long |
writeObjectToStream(OutputStream os,
Object val,
List<ITraverseProcessor> preprocessors,
List<ITraverseProcessor> encoderhandlers,
Object usercontext,
ClassLoader classloader)
Convert an object to an encoded byte array.
|
static long |
writeObjectToStream(OutputStream os,
Object val,
List<ITraverseProcessor> preprocessors,
Object usercontext,
ClassLoader classloader)
Convert an object to an encoded byte array.
|
public static final List<ITraverseProcessor> ENCODER_HANDLERS
public static long writeObjectToStream(OutputStream os, Object val, ClassLoader classloader)
val
- The object being encoded.preprocessors
- List of processors called before the object is encoded, may be null.usercontext
- A user context, may be null.classloader
- The class loader used.public static long writeObjectToStream(OutputStream os, Object val, List<ITraverseProcessor> preprocessors, Object usercontext, ClassLoader classloader)
val
- The object being encoded.preprocessors
- List of processors called before the object is encoded, may be null.usercontext
- A user context, may be null.classloader
- The class loader used.public static long writeObjectToStream(OutputStream os, Object val, List<ITraverseProcessor> preprocessors, List<ITraverseProcessor> encoderhandlers, Object usercontext, ClassLoader classloader)
val
- The object being encoded.preprocessors
- List of processors called before the object is encoded, may be null.usercontext
- A user context, may be null.classloader
- The class loader used.public static long writeObjectToDataOutput(DataOutput dato, Object val, ClassLoader classloader)
val
- The object being encoded.preprocessors
- List of processors called before the object is encoded, may be null.usercontext
- A user context, may be null.classloader
- The class loader used.public static long writeObjectToDataOutput(DataOutput dato, Object val, List<ITraverseProcessor> preprocessors, Object usercontext, ClassLoader classloader)
val
- The object being encoded.preprocessors
- List of processors called before the object is encoded, may be null.usercontext
- A user context, may be null.classloader
- The class loader used.public static long writeObjectToDataOutput(DataOutput dato, Object val, List<ITraverseProcessor> preprocessors, List<ITraverseProcessor> encoderhandlers, Object usercontext, ClassLoader classloader)
val
- The object being encoded.preprocessors
- List of processors called before the object is encoded, may be null.usercontext
- A user context, may be null.classloader
- The class loader used.public static Object readObjectFromStream(InputStream is, List<IDecoderHandler> postprocessors, Object usercontext, ClassLoader classloader, IErrorReporter errorreporter)
val
- The byte array.usercontext
- A user context, may be null.classloader
- The class loader.errorreporter
- The error reporter, may be null in which case the default reporter is used.public static Object readObjectFromDataInput(DataInput di, List<IDecoderHandler> postprocessors, Object usercontext, ClassLoader classloader, IErrorReporter errorreporter)
val
- The byte array.usercontext
- A user context, may be null.classloader
- The class loader.errorreporter
- The error reporter, may be null in which case the default reporter is used.Copyright © 2015. All Rights Reserved.