@NotThreadSafe public class ExporterXML extends Object implements IExporterFile
IExporterFile for XML files| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_TYPE |
static boolean |
DEFAULT_EMIT_TYPE_ATTRIBUTE |
static String |
ELEMENT_BODY |
static String |
ELEMENT_FIELD |
static String |
ELEMENT_FOOTER |
static String |
ELEMENT_HEADER |
static String |
ELEMENT_RECORD |
static String |
ELEMENT_ROOT |
| 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.IXMLWriterSettings |
getXMLWriterSettings() |
boolean |
isEmitTypeAttr() |
ExporterXML |
setCharset(Charset aCharset) |
ExporterXML |
setEmitTypeAttr(boolean bEmitTypeAttr) |
com.helger.xml.serialize.write.XMLWriterSettings |
xmlWriterSettings() |
public static final boolean DEFAULT_EMIT_TYPE_ATTRIBUTE
public static final String ELEMENT_ROOT
public static final String ELEMENT_HEADER
public static final String ELEMENT_BODY
public static final String ELEMENT_FOOTER
public static final String ELEMENT_RECORD
public static final String ELEMENT_FIELD
public static final String ATTR_TYPE
@Nonnull public final EExchangeFileType getFileType()
getFileType in interface IExporterFile@Nonnull public final ExporterXML setCharset(@Nonnull Charset aCharset)
@Nonnull @ReturnsMutableObject public final com.helger.xml.serialize.write.XMLWriterSettings xmlWriterSettings()
@Nonnull @ReturnsImmutableObject public final com.helger.xml.serialize.write.IXMLWriterSettings getXMLWriterSettings()
public final boolean isEmitTypeAttr()
@Nonnull public final 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.Copyright © 2014–2023 Philip Helger. All rights reserved.