org.apache.activemq.apollo.dto
Class XmlCodec

java.lang.Object
  extended by org.apache.activemq.apollo.dto.XmlCodec

public class XmlCodec
extends java.lang.Object

Author:
Hiram Chirino

Nested Class Summary
static class XmlCodec.PropertiesFilter
          Changes ${property} with values from a properties object
 
Field Summary
static javax.xml.bind.JAXBContext _context
           
 
Constructor Summary
XmlCodec()
           
 
Method Summary
static
<T> T
decode(java.lang.Class<T> clazz, java.io.InputStream is)
           
static
<T> T
decode(java.lang.Class<T> clazz, java.io.InputStream is, java.util.Properties props)
           
static
<T> T
decode(java.lang.Class<T> clazz, java.io.InputStream is, java.util.Properties props, javax.xml.bind.ValidationEventHandler validationHandler)
           
static
<T> T
decode(java.lang.Class<T> clazz, java.net.URL url)
           
static
<T> T
decode(java.lang.Class<T> clazz, java.net.URL url, java.util.Properties props)
           
static void encode(java.lang.Object in, java.io.OutputStream os, boolean format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_context

public static volatile javax.xml.bind.JAXBContext _context
Constructor Detail

XmlCodec

public XmlCodec()
Method Detail

decode

public static <T> T decode(java.lang.Class<T> clazz,
                           java.net.URL url)
                throws java.io.IOException,
                       javax.xml.stream.XMLStreamException,
                       javax.xml.bind.JAXBException,
                       org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException
org.xml.sax.SAXException

decode

public static <T> T decode(java.lang.Class<T> clazz,
                           java.net.URL url,
                           java.util.Properties props)
                throws java.io.IOException,
                       javax.xml.stream.XMLStreamException,
                       javax.xml.bind.JAXBException,
                       org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException
org.xml.sax.SAXException

decode

public static <T> T decode(java.lang.Class<T> clazz,
                           java.io.InputStream is)
                throws java.io.IOException,
                       javax.xml.stream.XMLStreamException,
                       javax.xml.bind.JAXBException,
                       org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException
org.xml.sax.SAXException

decode

public static <T> T decode(java.lang.Class<T> clazz,
                           java.io.InputStream is,
                           java.util.Properties props)
                throws java.io.IOException,
                       javax.xml.stream.XMLStreamException,
                       javax.xml.bind.JAXBException,
                       org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException
org.xml.sax.SAXException

decode

public static <T> T decode(java.lang.Class<T> clazz,
                           java.io.InputStream is,
                           java.util.Properties props,
                           javax.xml.bind.ValidationEventHandler validationHandler)
                throws java.io.IOException,
                       javax.xml.stream.XMLStreamException,
                       javax.xml.bind.JAXBException,
                       org.xml.sax.SAXException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
javax.xml.bind.JAXBException
org.xml.sax.SAXException

encode

public static void encode(java.lang.Object in,
                          java.io.OutputStream os,
                          boolean format)
                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.