|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.legstar.coxb.transform.AbstractJsonToHostTransformer
public abstract class AbstractJsonToHostTransformer
Generic methods to transform JSON to host data.
Constructor Summary | |
---|---|
AbstractJsonToHostTransformer(IJavaToHostTransformer javaToHostTransformer)
Create an JSON to Host transformer using a Java to Host transformer. |
Method Summary | |
---|---|
IJavaToHostTransformer |
getJavaToHostTransformer()
|
Object |
getObjectFromJson(Reader reader)
Unmarshal an JSON to get the JAXB value object. |
byte[] |
transform(Reader reader)
Transforms JSON to host data. |
byte[] |
transform(Reader reader,
HostTransformStatus status)
Transforms JSON to host data with a specific host character set. |
byte[] |
transform(Reader reader,
String hostCharset)
Transforms JSON to host data with a specific host character set. |
byte[] |
transform(Reader reader,
String hostCharset,
HostTransformStatus status)
Transforms JSON to host data 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 AbstractJsonToHostTransformer(IJavaToHostTransformer javaToHostTransformer) throws HostTransformException
javaToHostTransformer
- the java to host transformer
HostTransformException
- if transformer cannot be createdMethod Detail |
---|
public byte[] transform(Reader reader, String hostCharset, HostTransformStatus status) throws HostTransformException
transform
in interface IJsonToHostTransformer
reader
- the JSON Reader to unmarshal JSON data fromhostCharset
- the host character setstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic byte[] transform(Reader reader, HostTransformStatus status) throws HostTransformException
transform
in interface IJsonToHostTransformer
reader
- the JSON Reader to unmarshal JSON data fromstatus
- will contain information on the transformation after it is
executed
HostTransformException
- if transformation failspublic byte[] transform(Reader reader, String hostCharset) throws HostTransformException
transform
in interface IJsonToHostTransformer
reader
- the JSON Reader to unmarshal JSON data fromhostCharset
- the host character set
HostTransformException
- if transformation failspublic byte[] transform(Reader reader) throws HostTransformException
transform
in interface IJsonToHostTransformer
reader
- the JSON Reader to unmarshal JSON data from
HostTransformException
- if transformation failspublic Object getObjectFromJson(Reader reader) throws HostTransformException
reader
- the JSON Reader to unmarshal JSON data from (such as
SAXSource, DOMSource, and StreamSource)
HostTransformException
- if transformation failspublic IJavaToHostTransformer getJavaToHostTransformer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |