public class JsonMetaDataSerializer extends Object
Constructor and Description |
---|
JsonMetaDataSerializer() |
Modifier and Type | Method and Description |
---|---|
static void |
toJSON(XMLizable object,
File file) |
static void |
toJSON(XMLizable object,
File file,
boolean isFormattedOutput) |
static void |
toJSON(XMLizable object,
com.fasterxml.jackson.core.JsonGenerator jg,
boolean isFormattedOutput)
Serialize use a specific instance of a JsonGenerator which encapsulates where the output goes
|
static void |
toJSON(XMLizable object,
OutputStream aOutputStream)
Writes out this object's JSON representation.
|
static void |
toJSON(XMLizable object,
OutputStream aOutputStream,
boolean isFormattedOutput) |
static void |
toJSON(XMLizable object,
Writer aWriter)
Serialize to a writer
|
static void |
toJSON(XMLizable object,
Writer aWriter,
boolean isFormattedOutput)
Serialize to a writer
|
public static void toJSON(XMLizable object, Writer aWriter) throws SAXException
object
- - the instance of an XMLizable to serializeaWriter
- - where the output goesSAXException
- - wrapping an IOException, probablypublic static void toJSON(XMLizable object, Writer aWriter, boolean isFormattedOutput) throws SAXException
object
- - the instance of an XMLizable to serializeaWriter
- - where the output goesisFormattedOutput
- true for pretty printingSAXException
- - wrapping an IOException, probablypublic static void toJSON(XMLizable object, com.fasterxml.jackson.core.JsonGenerator jg, boolean isFormattedOutput) throws SAXException
object
- - the instance of an XMLizable to serializejg
- the generator to useisFormattedOutput
- true for pretty printingSAXException
- - wrapping an IOException, probablypublic static void toJSON(XMLizable object, OutputStream aOutputStream) throws SAXException
object
- - the instance of an XMLizable to serializeaOutputStream
- an OutputStream to which the JSON will be writtenSAXException
- - wrapping an IOException, probablypublic static void toJSON(XMLizable object, OutputStream aOutputStream, boolean isFormattedOutput) throws SAXException
object
- - the instance of an XMLizable to serializeaOutputStream
- an OutputStream to which the JSON will be writtenisFormattedOutput
- true for pretty printingSAXException
- - wrapping an IOException, probablypublic static void toJSON(XMLizable object, File file) throws SAXException
object
- - the instance of an XMLizable to serializefile
- where the output goesSAXException
- - wrapping an IOException, probablypublic static void toJSON(XMLizable object, File file, boolean isFormattedOutput) throws SAXException
object
- - the instance of an XMLizable to serializefile
- where the output goesisFormattedOutput
- true for pretty printingSAXException
- - wrapping an IOException, probablyCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.