@NotThreadSafe public class ExporterJSON extends Object implements IExporterFile
IExporterFile for JSON files| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_EMIT_TYPE |
| Constructor and Description |
|---|
ExporterJSON() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.json.IJsonObject |
convertRecords(IExportRecordProvider aProvider) |
com.helger.commons.state.ESuccess |
exportRecords(IExportRecordProvider aProvider,
OutputStream aOS)
Export all provided records to an output stream.
|
Charset |
getCharset() |
EExchangeFileType |
getFileType() |
com.helger.json.serialize.IJsonWriterSettings |
getJsonWriterSettings() |
boolean |
isEmitType() |
ExporterJSON |
setCharset(Charset aCharset) |
ExporterJSON |
setEmitType(boolean bEmitType) |
ExporterJSON |
setJsonWriterSettings(com.helger.json.serialize.IJsonWriterSettings aJWS) |
public static final boolean DEFAULT_EMIT_TYPE
@Nonnull public ExporterJSON setCharset(@Nonnull Charset aCharset)
@Nonnull public com.helger.json.serialize.IJsonWriterSettings getJsonWriterSettings()
@Nonnull public ExporterJSON setJsonWriterSettings(@Nonnull com.helger.json.serialize.IJsonWriterSettings aJWS)
public boolean isEmitType()
@Nonnull public ExporterJSON setEmitType(boolean bEmitType)
@Nullable public com.helger.json.IJsonObject convertRecords(@Nonnull IExportRecordProvider aProvider)
@Nonnull public com.helger.commons.state.ESuccess exportRecords(@Nonnull IExportRecordProvider aProvider, @Nonnull @WillClose OutputStream aOS)
IExporterexportRecords in interface IExporteraProvider - The provider for all records. May not be null.aOS - The output stream to write to. Will be closed automatically in any
case. May not be null.ESuccess.SUCCESS if at lease one record was provided and
saving was successful.@Nonnull public EExchangeFileType getFileType()
getFileType in interface IExporterFileCopyright © 2014–2020 Philip Helger. All rights reserved.