org.plasma.common.bind
Class DataBindingSupport

java.lang.Object
  extended by org.plasma.common.bind.DataBindingSupport
Direct Known Subclasses:
NonValidatingUnmarshaler, ValidatingUnmarshaler

public class DataBindingSupport
extends Object


Field Summary
protected  JAXBContext context
           
 
Constructor Summary
DataBindingSupport(JAXBContext context)
           
 
Method Summary
 String marshal(Object root)
           
 void marshal(Object root, OutputStream stream)
           
 void marshal(Object root, OutputStream stream, boolean formattedOutput)
           
 Object unmarshal(InputStream stream)
           
 Object unmarshal(Reader reader)
           
 Object unmarshal(Source source)
           
 Object unmarshal(String xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected JAXBContext context
Constructor Detail

DataBindingSupport

public DataBindingSupport(JAXBContext context)
Method Detail

marshal

public String marshal(Object root)
               throws JAXBException
Throws:
JAXBException

marshal

public void marshal(Object root,
                    OutputStream stream)
             throws JAXBException
Throws:
JAXBException

marshal

public void marshal(Object root,
                    OutputStream stream,
                    boolean formattedOutput)
             throws JAXBException
Throws:
JAXBException

unmarshal

public Object unmarshal(String xml)
                 throws JAXBException
Throws:
JAXBException

unmarshal

public Object unmarshal(Reader reader)
                 throws JAXBException
Throws:
JAXBException

unmarshal

public Object unmarshal(Source source)
                 throws JAXBException
Throws:
JAXBException

unmarshal

public Object unmarshal(InputStream stream)
                 throws JAXBException
Throws:
JAXBException


Copyright © 2014. All rights reserved.