|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.legstar.coxb.transform.AbstractHostToJsonTransformer
public abstract class AbstractHostToJsonTransformer
Generic methods to transform host data to JSON.
Constructor Summary | |
---|---|
AbstractHostToJsonTransformer(IHostToJavaTransformer hostToJavaTransformer)
Create an Host to JSON transformer using a Host to Java transformer. |
Method Summary | |
---|---|
IHostToJavaTransformer |
getHostToJavaTransformer()
|
void |
getJsonFromObject(Object valueObject,
Writer writer)
Marshal JAXB value object to get the JSON. |
void |
transform(byte[] hostData,
int offset,
Writer writer)
Transforms host data to JSON. |
void |
transform(byte[] hostData,
int offset,
Writer writer,
HostTransformStatus status)
Transforms host data to JSON. |
void |
transform(byte[] hostData,
int offset,
Writer writer,
String hostCharset)
Transforms host data to JSON with a specific host character set. |
void |
transform(byte[] hostData,
int offset,
Writer writer,
String hostCharset,
HostTransformStatus status)
Transforms host data to JSON with a specific host character set. |
void |
transform(byte[] hostData,
Writer writer)
Transforms host data to JSON. |
void |
transform(byte[] hostData,
Writer writer,
HostTransformStatus status)
Transforms host data to JSON. |
void |
transform(byte[] hostData,
Writer writer,
String hostCharset)
Transforms host data to JSON with a specific host character set. |
void |
transform(byte[] hostData,
Writer writer,
String hostCharset,
HostTransformStatus status)
Transforms host data to JSON with a specific host character set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractHostToJsonTransformer(IHostToJavaTransformer hostToJavaTransformer) throws HostTransformException
hostToJavaTransformer
- the host to java transformer
HostTransformException
- if transformer cannot be createdMethod Detail |
---|
public void transform(byte[] hostData, int offset, Writer writer, String hostCharset, HostTransformStatus status) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatawriter
- JSON will be sent to this writer.hostCharset
- the host character setstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic void transform(byte[] hostData, int offset, Writer writer, String hostCharset) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatawriter
- JSON will be sent to this writer.hostCharset
- the host character set
HostTransformException
- if transformation failspublic void transform(byte[] hostData, Writer writer, String hostCharset) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host datawriter
- JSON will be sent to this writer.hostCharset
- the host character set
HostTransformException
- if transformation failspublic void transform(byte[] hostData, Writer writer) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host datawriter
- JSON will be sent to this writer.
HostTransformException
- if transformation failspublic void transform(byte[] hostData, int offset, Writer writer) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatawriter
- JSON will be sent to this writer.
HostTransformException
- if transformation failspublic void transform(byte[] hostData, Writer writer, String hostCharset, HostTransformStatus status) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host datawriter
- JSON will be sent to this writer.hostCharset
- the host character setstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic void transform(byte[] hostData, Writer writer, HostTransformStatus status) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host datawriter
- JSON will be sent to this writer.status
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic void transform(byte[] hostData, int offset, Writer writer, HostTransformStatus status) throws HostTransformException
transform
in interface IHostToJsonTransformer
hostData
- a byte array containing host dataoffset
- index of first byte to process in hostDatawriter
- JSON will be sent to this writer.status
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic void getJsonFromObject(Object valueObject, Writer writer) throws HostTransformException
valueObject
- the JAXB value objectwriter
- JSON will be sent to this writer.
HostTransformException
- if transformation failspublic IHostToJavaTransformer getHostToJavaTransformer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |