@NotThreadSafe public class ExporterXML extends Object implements IExporterFile
IExporterFile for XML files| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_EMIT_TYPE_ATTRIBUTE |
| Constructor and Description |
|---|
ExporterXML() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.xml.microdom.IMicroDocument |
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.xml.serialize.write.XMLWriterSettings |
getXMLWriterSettings() |
ExporterXML |
setCharset(Charset aCharset) |
ExporterXML |
setEmitTypeAttr(boolean bEmitTypeAttr) |
public static final boolean DEFAULT_EMIT_TYPE_ATTRIBUTE
@Nonnull public ExporterXML setCharset(@Nonnull Charset aCharset)
@Nonnull @ReturnsMutableObject(value="Design") public com.helger.xml.serialize.write.XMLWriterSettings getXMLWriterSettings()
@Nonnull public ExporterXML setEmitTypeAttr(boolean bEmitTypeAttr)
@Nullable public com.helger.xml.microdom.IMicroDocument 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.