xml
Class Utils

java.lang.Object
  extended by xml.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.awt.Image decodeImage(java.lang.String s)
           
static java.lang.Object decodeXml(java.io.File readFile)
           
static java.lang.Object decodeXml(java.lang.String xml)
           
static java.lang.String encodeImage(java.awt.Image img)
           
static java.lang.String getHexString(java.io.Serializable object)
           
static javax.xml.parsers.SAXParser getParser()
          getParser returns a SAXParser This was changed to reflect the latest jaxp distro.
static java.lang.String getXmlString(java.io.Serializable o)
           
static void main(java.lang.String[] args)
           
static java.lang.Object readXml()
           
static void testBase64GzipEncodeDecoding()
           
static void testCodec()
           
static void testReadWriteXml()
           
static void testXmlDecoder()
           
static void testXmlImageEncoding()
           
static void testXmlString()
           
static void writeXml(java.io.Serializable object)
          write out object as XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

testCodec

public static void testCodec()

testReadWriteXml

public static void testReadWriteXml()

testXmlImageEncoding

public static void testXmlImageEncoding()

encodeImage

public static java.lang.String encodeImage(java.awt.Image img)

decodeImage

public static java.awt.Image decodeImage(java.lang.String s)

testBase64GzipEncodeDecoding

public static void testBase64GzipEncodeDecoding()

testXmlDecoder

public static void testXmlDecoder()

getHexString

public static java.lang.String getHexString(java.io.Serializable object)

readXml

public static java.lang.Object readXml()

main

public static void main(java.lang.String[] args)

testXmlString

public static void testXmlString()

getXmlString

public static java.lang.String getXmlString(java.io.Serializable o)

decodeXml

public static java.lang.Object decodeXml(java.lang.String xml)

writeXml

public static void writeXml(java.io.Serializable object)
write out object as XML.

Parameters:
object -

getParser

public static javax.xml.parsers.SAXParser getParser()
                                             throws org.xml.sax.SAXException,
                                                    javax.xml.parsers.ParserConfigurationException
getParser returns a SAXParser This was changed to reflect the latest jaxp distro. Since it was subject to deprecation before it is wise to isolate the feature here. This is an example of defensive programming.

Throws:
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

decodeXml

public static java.lang.Object decodeXml(java.io.File readFile)