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.ExportContextXmlStreamWriter
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, forceOptimizedXml, INDENT_STRING, LINE_END, prettyPrint, xmlWriter -
Constructor Summary
ConstructorsConstructorDescriptionDcsXmlStreamWriter(XMLStreamWriter xmlWriter, IExportContext exportContext, Writer writer, boolean prettyPrint, String lineFeed) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite xml document header with namespacesstatic DcsXmlStreamWritercreateInstance(String lineFeed, OutputStream outputStream, IExportContext exportContext) 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.ExportContextXmlStreamWriter
getExportContextMethods inherited from class com._1c.g5.v8.dt.export.xml.writer.ExportXmlStreamWriter
addKnownPrefix, addKnownPrefix, beginDocument, decreaseIndent, getIndent, getNewPrefix, getPrefix, getXmlWriter, increaseIndent, optimizeQName, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeCharacters, writeDefaultNamespace, writeDefaultNamespace, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeInlineEndElement, writeNamespace, 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, IExportContext exportContext, Writer writer, boolean prettyPrint, String lineFeed) Constructor- Parameters:
xmlWriter-XMLStreamWriterfor write xml content, cannot benullexportContext- the export context, cannot benullwriter-Writerfor force write content to the output stream. See methodExportXmlStreamWriterExtension.writeContent(String), cannot benullprettyPrint- enable write XML elements with indentation by levellineFeed- the line feed to use, cannot benull
-
-
Method Details
-
createInstance
public static DcsXmlStreamWriter createInstance(String lineFeed, OutputStream outputStream, IExportContext exportContext) throws XMLStreamException CreatesDcsXmlStreamWriterbyOutputStream- Parameters:
lineFeed- the line feed to use, cannot benulloutputStream- actualOutputStreamfor write xml, cannot benullexportContext- the export context, cannot 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
-