public class HollowRecordJsonStringifier extends java.lang.Object implements HollowStringifier<HollowRecordJsonStringifier>
Constructor and Description |
---|
HollowRecordJsonStringifier() |
HollowRecordJsonStringifier(boolean prettyPrint,
boolean collapseAllSingleFieldObjects) |
HollowRecordJsonStringifier(boolean indent,
java.lang.String... collapseObjectTypes) |
Modifier and Type | Method and Description |
---|---|
HollowRecordJsonStringifier |
addExcludeObjectTypes(java.lang.String... types)
Exclude specified object types (replace output with null)
|
java.lang.String |
stringify(HollowDataAccess dataAccess,
java.lang.String type,
int ordinal)
Create a JSON representation of the record in the provided dataset, of the given type, with the specified ordinal.
|
java.lang.String |
stringify(HollowRecord record)
Create a JSON representation of the provided
HollowRecord . |
void |
stringify(java.io.Writer writer,
HollowDataAccess dataAccess,
java.lang.String type,
int ordinal)
Write a JSON representation of the record in the provided dataset, of the given type, with the specified ordinal.
|
void |
stringify(java.io.Writer writer,
HollowRecord record)
Write a JSON representation of the provided
HollowRecord to the provided Writer. |
public HollowRecordJsonStringifier()
public HollowRecordJsonStringifier(boolean prettyPrint, boolean collapseAllSingleFieldObjects)
public HollowRecordJsonStringifier(boolean indent, java.lang.String... collapseObjectTypes)
public HollowRecordJsonStringifier addExcludeObjectTypes(java.lang.String... types)
HollowStringifier
addExcludeObjectTypes
in interface HollowStringifier<HollowRecordJsonStringifier>
public java.lang.String stringify(HollowRecord record)
HollowRecord
.stringify
in interface HollowStringifier<HollowRecordJsonStringifier>
public java.lang.String stringify(HollowDataAccess dataAccess, java.lang.String type, int ordinal)
stringify
in interface HollowStringifier<HollowRecordJsonStringifier>
public void stringify(java.io.Writer writer, HollowRecord record) throws java.io.IOException
HollowRecord
to the provided Writer.java.io.IOException
public void stringify(java.io.Writer writer, HollowDataAccess dataAccess, java.lang.String type, int ordinal) throws java.io.IOException
java.io.IOException