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 QNameDATA_COMPOSITION_SCHEMAstatic StringDCS_COMMON_XML_NAMESPACEstatic StringDCS_COMMON_XML_NAMESPACE_PREFIXstatic StringDCS_CORE_XML_NAMESPACEstatic StringDCS_CORE_XML_NAMESPACE_PREFIXstatic StringDCS_SCHEMA_XML_NAMESPACEstatic StringDCS_SETTINGS_NAMESPACE_XML_PREFIXstatic StringDCS_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 voidbeginDocument()Write xml document header with namespacesstatic DcsXmlStreamWritercreateInstance(String lineFeed, OutputStream outputStream)CreatesDcsXmlStreamWriterbyOutputStream-
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-XMLStreamWriterfor write xml content, can't benullwriter-Writerfor force write content to the output stream. See methodExportXmlStreamWriterExtension.writeContent(String), can't benullprettyPrint- 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
CreatesDcsXmlStreamWriterbyOutputStream- Parameters:
lineFeed- the line feed to use, can't benulloutputStream- actualOutputStreamfor write xml, can't benull- Returns:
- created
DcsXmlStreamWriter, nevernull - Throws:
XMLStreamException- if error will be occured fromXMLStreamWriterorXMLOutputFactory
-
beginDocument
public void beginDocument() throws XMLStreamExceptionDescription copied from class:ExportXmlStreamWriterWrite xml document header with namespaces- Overrides:
beginDocumentin classExportXmlStreamWriter- Throws:
XMLStreamException- if an error occurred of write in stream
-
-