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
public class DcsXmlStreamWriter extends ExportXmlStreamWriterExtension
XmlStreamWriter for dcs objects
-
-
Field Summary
Fields Modifier and Type Field Description static QName
DATA_COMPOSITION_SCHEMA
static String
DCS_COMMON_XML_NAMESPACE
static String
DCS_COMMON_XML_NAMESPACE_PREFIX
static String
DCS_CORE_XML_NAMESPACE
static String
DCS_CORE_XML_NAMESPACE_PREFIX
static String
DCS_SCHEMA_XML_NAMESPACE
static String
DCS_SETTINGS_NAMESPACE_XML_PREFIX
static String
DCS_SETTINGS_XML_NAMESPACE
-
Fields inherited from class com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriter
charactersExportConvertOption, ENCODING, INDENT_STRING, LINE_END, xmlWriter
-
-
Constructor Summary
Constructors Constructor Description DcsXmlStreamWriter(XMLStreamWriter xmlWriter, Writer writer, boolean prettyPrint, String lineFeed)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginDocument()
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 Detail
-
DCS_SCHEMA_XML_NAMESPACE
public static final String DCS_SCHEMA_XML_NAMESPACE
- See Also:
- Constant Field Values
-
DCS_COMMON_XML_NAMESPACE
public static final String DCS_COMMON_XML_NAMESPACE
- See Also:
- Constant Field Values
-
DCS_CORE_XML_NAMESPACE
public static final String DCS_CORE_XML_NAMESPACE
- See Also:
- Constant Field Values
-
DCS_SETTINGS_XML_NAMESPACE
public static final String DCS_SETTINGS_XML_NAMESPACE
- See Also:
- Constant Field Values
-
DCS_COMMON_XML_NAMESPACE_PREFIX
public static final String DCS_COMMON_XML_NAMESPACE_PREFIX
- See Also:
- Constant Field Values
-
DCS_CORE_XML_NAMESPACE_PREFIX
public static final String DCS_CORE_XML_NAMESPACE_PREFIX
- See Also:
- Constant Field Values
-
DCS_SETTINGS_NAMESPACE_XML_PREFIX
public static final String DCS_SETTINGS_NAMESPACE_XML_PREFIX
- See Also:
- Constant Field Values
-
DATA_COMPOSITION_SCHEMA
public static final QName DATA_COMPOSITION_SCHEMA
-
-
Constructor Detail
-
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 Detail
-
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
public void beginDocument() throws XMLStreamException
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
-
-