public class XMLEncoderDecoder
extends java.lang.Object
Constructor and Description |
---|
XMLEncoderDecoder() |
Modifier and Type | Method and Description |
---|---|
static java.io.Serializable |
xmlDecode(byte[] bytes)
Purpose: convert the passed bytes which represent an xml 'object', and convert them to an instance of an 'object' described by the xml. |
static java.io.Serializable |
xmlDecode(java.lang.String filename)
Purpose: read the bytes from 'filename' (the xml file), and convert them to an instance of an 'object' described by the xml. |
static byte[] |
xmlEncode(java.io.Serializable obj)
Purpose: convert the passed object instance into an array of bytes which represent it as an xml 'object', Assumptions: jvm 1.4, that the object is serializable |
public static byte[] xmlEncode(java.io.Serializable obj)
bytes,
- byte[]public static java.io.Serializable xmlDecode(byte[] bytes)
bytes,
- byte[]public static java.io.Serializable xmlDecode(java.lang.String filename) throws java.io.IOException
filename,
- Stringjava.io.IOException
Copyright © SAS Institute. All Rights Reserved.