|
||||||||||
| 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.AbstractHostToXmlTransformer
public abstract class AbstractHostToXmlTransformer
Generic methods to transform host data to XML.
| Constructor Summary | |
|---|---|
AbstractHostToXmlTransformer(IHostToJavaTransformer hostToJavaTransformer)
Create an Host to XML transformer using a Host to Java transformer. |
|
| Method Summary | |
|---|---|
abstract String |
getElementName()
|
IHostToJavaTransformer |
getHostToJavaTransformer()
|
abstract String |
getNamespace()
|
void |
getXmlFromObject(Object valueObject,
Writer writer)
Marshal JAXB value object to get the XML. |
Marshaller |
getXmlMarshaller()
|
abstract boolean |
isXmlRootElement()
|
void |
transform(byte[] hostData,
int offset,
Writer writer)
Transforms host data to XML. |
void |
transform(byte[] hostData,
int offset,
Writer writer,
HostTransformStatus status)
Transforms host data to XML. |
void |
transform(byte[] hostData,
int offset,
Writer writer,
String hostCharset)
Transforms host data to XML with a specific host character set. |
void |
transform(byte[] hostData,
int offset,
Writer writer,
String hostCharset,
HostTransformStatus status)
Transforms host data to XML with a specific host character set. |
void |
transform(byte[] hostData,
Writer writer)
Transforms host data to XML. |
void |
transform(byte[] hostData,
Writer writer,
HostTransformStatus status)
Transforms host data to XML. |
void |
transform(byte[] hostData,
Writer writer,
String hostCharset)
Transforms host data to XML with a specific host character set. |
void |
transform(byte[] hostData,
Writer writer,
String hostCharset,
HostTransformStatus status)
Transforms host data to XML 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 AbstractHostToXmlTransformer(IHostToJavaTransformer hostToJavaTransformer)
throws HostTransformException
hostToJavaTransformer - the host to java transformer
HostTransformException - if transformer cannot be created| Method Detail |
|---|
public void transform(byte[] hostData,
int offset,
Writer writer,
String hostCharset,
HostTransformStatus status)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host dataoffset - index of first byte to process in hostDatawriter - XML will be sent to this writer.hostCharset - the host character setstatus - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public void transform(byte[] hostData,
int offset,
Writer writer,
String hostCharset)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host dataoffset - index of first byte to process in hostDatawriter - XML will be sent to this writer.hostCharset - the host character set
HostTransformException - if transformation fails
public void transform(byte[] hostData,
Writer writer,
String hostCharset)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host datawriter - XML will be sent to this writer.hostCharset - the host character set
HostTransformException - if transformation fails
public void transform(byte[] hostData,
Writer writer)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host datawriter - XML will be sent to this writer.
HostTransformException - if transformation fails
public void transform(byte[] hostData,
int offset,
Writer writer)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host dataoffset - index of first byte to process in hostDatawriter - XML will be sent to this writer.
HostTransformException - if transformation fails
public void transform(byte[] hostData,
Writer writer,
String hostCharset,
HostTransformStatus status)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host datawriter - XML will be sent to this writer.hostCharset - the host character setstatus - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public void transform(byte[] hostData,
Writer writer,
HostTransformStatus status)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host datawriter - XML will be sent to this writer.status - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public void transform(byte[] hostData,
int offset,
Writer writer,
HostTransformStatus status)
throws HostTransformException
transform in interface IHostToXmlTransformerhostData - a byte array containing host dataoffset - index of first byte to process in hostDatawriter - XML will be sent to this writer.status - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public void getXmlFromObject(Object valueObject,
Writer writer)
throws HostTransformException
valueObject - the JAXB value objectwriter - XML will be sent to this writer.
HostTransformException - if transformation failspublic abstract boolean isXmlRootElement()
public abstract String getNamespace()
public abstract String getElementName()
public IHostToJavaTransformer getHostToJavaTransformer()
public Marshaller getXmlMarshaller()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||