|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.develop.common.util.AmfUtil
public final class AmfUtil
Utilities for AMF encoding and decoding.
AmfEncoder,
AmfDecoder| Method Summary | ||
|---|---|---|
static Object |
decode(byte[] bytes)
Decode a instance from specified AMF bytes. |
|
static Object |
decode(byte[] bytes,
AmfDecoderOption option)
Decode a instance from specified AMF bytes. |
|
static
|
decode(byte[] bytes,
Class<? extends T> clazz)
Decode the instance of specified class from AMF bytes. |
|
static
|
decode(byte[] bytes,
Class<? extends T> clazz,
AmfDecoderOption option)
Decode the instance of specified class from AMF bytes. |
|
static
|
decode(byte[] bytes,
Type type)
Decode the instance of specified type from specified bytes. |
|
static
|
decode(byte[] bytes,
Type type,
AmfDecoderOption option)
Decode the instance of specified type from specified bytes. |
|
static Object |
decode(InputStream in)
Decode a instance from specified input stream. |
|
static Object |
decode(InputStream in,
AmfDecoderOption option)
Decode a instance from specified input stream. |
|
static
|
decode(InputStream in,
Class<? extends T> clazz)
Decode the instance of specified class from specified input stream. |
|
static
|
decode(InputStream in,
Class<? extends T> clazz,
AmfDecoderOption option)
Decode the instance of specified class from specified input stream. |
|
static
|
decode(InputStream in,
Type type)
Decode the instance of specified type from specified input stream. |
|
static
|
decode(InputStream in,
Type type,
AmfDecoderOption option)
Decode the instance of specified type from specified input stream. |
|
static byte[] |
encode(Object obj)
Encode the object to AMF bytes. |
|
static byte[] |
encode(Object obj,
AmfEncoderOption option)
Encode the object to AMF bytes, according to specified configuration option. |
|
static void |
encode(OutputStream out,
Object obj)
Encode the object as AMF to specified output stream. |
|
static void |
encode(OutputStream out,
Object obj,
AmfEncoderOption option)
Encode the object as AMF to specified output stream, according to specified configuration option. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T decode(InputStream in,
Type type)
T - The type of result instance.in - Input stream.type - The type of result instance.
public static <T> T decode(InputStream in,
Class<? extends T> clazz)
T - The type of result instance.in - Input stream.clazz - The class of result instance.
public static Object decode(InputStream in)
in - Input stream.
public static <T> T decode(byte[] bytes,
Type type)
T - The type of result instance.bytes - AMF data.type - The type of result instance.
public static <T> T decode(byte[] bytes,
Class<? extends T> clazz)
T - The type of result instance.bytes - AMF bytes.clazz - The class of result instance.
public static Object decode(byte[] bytes)
bytes - AMF bytes.
public static <T> T decode(InputStream in,
Type type,
AmfDecoderOption option)
T - The type of result instance.in - Input stream.type - The type of result instance.option - the configuration option of AMF decoder.
public static <T> T decode(InputStream in,
Class<? extends T> clazz,
AmfDecoderOption option)
T - The type of result instance.in - Input stream.clazz - The class of result instance.option - the configuration option of AMF decoder.
public static Object decode(InputStream in,
AmfDecoderOption option)
in - Input stream.option - the configuration option of AMF decoder.
public static <T> T decode(byte[] bytes,
Type type,
AmfDecoderOption option)
T - The type of result instance.bytes - AMF data.type - The type of result instance.option - the configuration option of AMF decoder.
public static <T> T decode(byte[] bytes,
Class<? extends T> clazz,
AmfDecoderOption option)
T - The type of result instance.bytes - AMF bytes.clazz - The class of result instance.option - the configuration option of AMF decoder.
public static Object decode(byte[] bytes,
AmfDecoderOption option)
bytes - AMF bytes.option - the configuration option of AMF decoder.
public static void encode(OutputStream out,
Object obj)
out - Output stream.obj - The object to be encoded.public static byte[] encode(Object obj)
obj - The object to be encoded.
public static void encode(OutputStream out,
Object obj,
AmfEncoderOption option)
out - Output stream.obj - The object to be encoded.option - Configuration option.
public static byte[] encode(Object obj,
AmfEncoderOption option)
obj - The object to be encoded.option - Configuration option.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||