|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.jddac.ArgXmlConverter
public class ArgXmlConverter
Encodes and decodes ArgArray and Vector objects into/from XML. This class encapsulates the DefaultXmlCoder into a couple static methods. It provides simple methods to convert a byte array of JDDAC Arg XML into objects and to convert objects into a byte array of JDDAC Arg XML.
DefaultXmlCoder,
ArgXmlCoder,
ArgTypeConverter| Method Summary | |
|---|---|
static java.lang.Object |
decodeFromXml(byte[] xml,
int strt,
int len)
Decodes JDDAC Arg XML into an ArgArray or Vector. |
static byte[] |
encodeToXml(java.lang.Object o)
Encodes an ArgArray or Vector into JDDAC Arg XML. |
static net.java.jddac.common.type.ArgArray |
loadArgArray(java.io.InputStream fstream)
Given an InputStream, deserialize the contents into an ArgArray. |
static net.java.jddac.common.type.ArgArray |
loadArgArray(java.lang.String xml)
Given an String, deserialize the contents into an ArgArray. |
static java.util.Vector |
loadVector(java.io.InputStream fstream)
Given an InputStream, deserialize the contents into an Vector. |
static java.util.Vector |
loadVector(java.lang.String xml)
Given an String, deserialize the contents into an Vector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] encodeToXml(java.lang.Object o)
o - -
a ArgArray or Vector of JDDAC Arg objects.
o.
public static java.lang.Object decodeFromXml(byte[] xml,
int strt,
int len)
xml - -
a byte[] containing the JDDAC Arg XML.strt - -
the start of the XML in xml.len - -
the length of the XML in xml.
public static java.util.Vector loadVector(java.io.InputStream fstream)
fstream - -
the input stream.
public static net.java.jddac.common.type.ArgArray loadArgArray(java.io.InputStream fstream)
fstream - -
the input stream.
public static java.util.Vector loadVector(java.lang.String xml)
xml - -
the string containing the xml.
public static net.java.jddac.common.type.ArgArray loadArgArray(java.lang.String xml)
xml - -
the string containing the xml.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||