|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsds.more.Codec
public final class Codec
SDS encoder/decoder used to marshall requests and unmarshall responses
Constructor Summary | |
---|---|
Codec()
|
Method Summary | |
---|---|
static java.lang.Object |
decode(java.io.InputStream in)
Decodes an object from a source stream |
static void |
encode(java.io.Serializable obj,
java.io.OutputStream out)
Creates an encoding of the given object and writes the resulting flow to the provided output stream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Codec()
Method Detail |
---|
public static void encode(java.io.Serializable obj, java.io.OutputStream out) throws java.io.IOException
Creates an encoding of the given object and writes the resulting flow to the provided output stream
obj
- The object to encodeout
- The destination stream
java.io.IOException
- An argument is null or an internal
encoding error occurredpublic static java.lang.Object decode(java.io.InputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
Decodes an object from a source stream
in
- The source stream use to recreate the object from
java.io.IOException
- The source stream is null or does not
contain a valid encoding
java.lang.ClassNotFoundException
- The object class is locally unknown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |