|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.legstar.coxb.transform.AbstractXmlTransformer
com.legstar.coxb.transform.AbstractXmlToHostTransformer
public abstract class AbstractXmlToHostTransformer
Generic methods to transform XML to host data.
| Constructor Summary | |
|---|---|
AbstractXmlToHostTransformer(IJavaToHostTransformer javaToHostTransformer)
Create an XML to Host transformer using a Java to Host transformer. |
|
| Method Summary | |
|---|---|
IJavaToHostTransformer |
getJavaToHostTransformer()
|
Object |
getObjectFromXml(Source source)
Unmarshal an XML to get the JAXB value object. |
Unmarshaller |
getXmlUnmarshaller()
|
byte[] |
transform(Source source)
Transforms XML to host data. |
byte[] |
transform(Source source,
HostTransformStatus status)
Transforms XML to host data. |
byte[] |
transform(Source source,
String hostCharset)
Transforms XML to host data with a specific host character set. |
byte[] |
transform(Source source,
String hostCharset,
HostTransformStatus status)
Transforms XML to host data with a specific host character set. |
| Methods inherited from class com.legstar.coxb.transform.AbstractXmlTransformer |
|---|
getJAXBContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractXmlToHostTransformer(IJavaToHostTransformer javaToHostTransformer)
throws HostTransformException
javaToHostTransformer - the java to host transformer
HostTransformException - if transformer cannot be created| Method Detail |
|---|
public byte[] transform(Source source,
String hostCharset,
HostTransformStatus status)
throws HostTransformException
transform in interface IXmlToHostTransformersource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)hostCharset - the host character setstatus - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public byte[] transform(Source source,
String hostCharset)
throws HostTransformException
transform in interface IXmlToHostTransformersource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)hostCharset - the host character set
HostTransformException - if transformation fails
public byte[] transform(Source source)
throws HostTransformException
transform in interface IXmlToHostTransformersource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)
HostTransformException - if transformation fails
public byte[] transform(Source source,
HostTransformStatus status)
throws HostTransformException
transform in interface IXmlToHostTransformersource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)status - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public Object getObjectFromXml(Source source)
throws HostTransformException
source - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)
HostTransformException - if transformation failspublic IJavaToHostTransformer getJavaToHostTransformer()
public Unmarshaller getXmlUnmarshaller()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||