com.gcapmedia.dab.epg.xml
Class XmlMarshaller

java.lang.Object
  extended by com.gcapmedia.dab.epg.xml.XmlMarshaller
All Implemented Interfaces:
Marshaller, java.io.Serializable

public class XmlMarshaller
extends java.lang.Object
implements Marshaller

Marshalls an EPG to/from XML

See Also:
Serialized Form

Constructor Summary
XmlMarshaller()
           
 
Method Summary
 byte[] marshall(Epg epg)
          Marshall a single instance of the EPG
 java.lang.String marshallToXmlString(Epg epg)
          Marshalls an EPG to an XML string adherent to the ISO/IEC 10646 character set and using UTF-8 encoding.
 Epg unmarshall(byte[] bytes)
          Unmarshall a single marshalled instance of the EPG
 Epg unmarshallFromFile(java.io.File file)
          Unmarshall an EPG from a file.
 Epg unmarshallFromUrl(java.net.URL url)
          Unmarshall a document located at the specified URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlMarshaller

public XmlMarshaller()
Method Detail

marshall

public byte[] marshall(Epg epg)
                throws MarshallException
Description copied from interface: Marshaller
Marshall a single instance of the EPG

Specified by:
marshall in interface Marshaller
Throws:
MarshallException
See Also:
Marshaller.marshall(com.gcapmedia.dab.epg.Epg)

marshallToXmlString

public java.lang.String marshallToXmlString(Epg epg)
                                     throws java.io.UnsupportedEncodingException,
                                            MarshallException
Marshalls an EPG to an XML string adherent to the ISO/IEC 10646 character set and using UTF-8 encoding.

Throws:
java.io.UnsupportedEncodingException
MarshallException

unmarshall

public Epg unmarshall(byte[] bytes)
Description copied from interface: Marshaller
Unmarshall a single marshalled instance of the EPG

Specified by:
unmarshall in interface Marshaller
See Also:
Marshaller.unmarshall(byte[])

unmarshallFromUrl

public Epg unmarshallFromUrl(java.net.URL url)
                      throws java.io.IOException
Unmarshall a document located at the specified URL. This should use the ISO/IEC 10646 character set and be encoded in UTF-8.

Throws:
java.io.IOException

unmarshallFromFile

public Epg unmarshallFromFile(java.io.File file)
                       throws java.io.IOException
Unmarshall an EPG from a file. This should use the ISO/IEC 10646 character set and be encoded in UTF-8.

Throws:
java.io.IOException


Copyright © 2007. All Rights Reserved.