Package com._1c.g5.v8.dt.dcs.util
Class DcsXmlStreamWriter
java.lang.Object
com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriter
com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriterExtension
com._1c.g5.v8.dt.dcs.util.DcsXmlStreamWriter
- All Implemented Interfaces:
AutoCloseable
XmlStreamWriter for dcs objects
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QName
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriter
charactersExportConvertOption, ENCODING, INDENT_STRING, LINE_END, xmlWriter
-
Constructor Summary
ConstructorsConstructorDescriptionDcsXmlStreamWriter
(XMLStreamWriter xmlWriter, Writer writer, boolean prettyPrint, String lineFeed) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Write xml document header with namespacesstatic DcsXmlStreamWriter
createInstance
(String lineFeed, OutputStream outputStream) CreatesDcsXmlStreamWriter
byOutputStream
Methods inherited from class com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriterExtension
close, writeContent, writeLineFeed
Methods inherited from class com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriter
addKnownPrefix, beginDocument, decreaseIndent, getIndent, getNewPrefix, getPrefix, getXmlWriter, increaseIndent, optimizeQName, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeCharacters, writeDefaultNamespace, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeInlineEndElement, writeNamespace, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeTextElement, writeTextElement
-
Field Details
-
DCS_SCHEMA_XML_NAMESPACE
- See Also:
-
DCS_COMMON_XML_NAMESPACE
- See Also:
-
DCS_CORE_XML_NAMESPACE
- See Also:
-
DCS_SETTINGS_XML_NAMESPACE
- See Also:
-
DCS_COMMON_XML_NAMESPACE_PREFIX
- See Also:
-
DCS_CORE_XML_NAMESPACE_PREFIX
- See Also:
-
DCS_SETTINGS_NAMESPACE_XML_PREFIX
- See Also:
-
DATA_COMPOSITION_SCHEMA
-
-
Constructor Details
-
DcsXmlStreamWriter
public DcsXmlStreamWriter(XMLStreamWriter xmlWriter, Writer writer, boolean prettyPrint, String lineFeed) Constructor- Parameters:
xmlWriter
-XMLStreamWriter
for write xml content, can't benull
writer
-Writer
for force write content to the output stream. See methodExportXmlStreamWriterExtension.writeContent(String)
, can't benull
prettyPrint
- enable write XML elements with indentation by levellineFeed
- the line feed to use, can't benull
-
-
Method Details
-
createInstance
public static DcsXmlStreamWriter createInstance(String lineFeed, OutputStream outputStream) throws XMLStreamException CreatesDcsXmlStreamWriter
byOutputStream
- Parameters:
lineFeed
- the line feed to use, can't benull
outputStream
- actualOutputStream
for write xml, can't benull
- Returns:
- created
DcsXmlStreamWriter
, nevernull
- Throws:
XMLStreamException
- if error will be occured fromXMLStreamWriter
orXMLOutputFactory
-
beginDocument
Description copied from class:ExportXmlStreamWriter
Write xml document header with namespaces- Overrides:
beginDocument
in classExportXmlStreamWriter
- Throws:
XMLStreamException
- if an error occurred of write in stream
-