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 QNamestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionvoidWrite xml document header with namespacesstatic DcsXmlStreamWritercreateInstance(String lineFeed, OutputStream outputStream) CreatesDcsXmlStreamWriterbyOutputStreamMethods inherited from class com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriterExtension
close, writeContent, writeLineFeedMethods 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-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 Details
-
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
Description copied from class:ExportXmlStreamWriterWrite xml document header with namespaces- Overrides:
beginDocumentin classExportXmlStreamWriter- Throws:
XMLStreamException- if an error occurred of write in stream
-