Package com._1c.g5.v8.dt.moxel.util
Class V8MoxelSerializer
java.lang.Object
com._1c.g5.v8.dt.moxel.util.V8MoxelSerializer
Spreadsheet document xml serializer
-
Constructor Summary
ConstructorsConstructorDescriptionV8MoxelSerializer
(IDtProject dtProject, SpreadsheetDocument sheet) Creates new serializer instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeXML
(InputStream inputStream) Deserializes spreadsheet document from input stream.void
deserializeXML
(InputStream inputStream, CompatibilityMode compatibilityMode) Deserializes spreadsheet document from input stream with compatibility mode.void
serializeXML
(OutputStream outputStream, String lineSeparator) WritesSpreadsheetDocument
to XML.void
serializeXML
(OutputStream outputStream, String lineSeparator, CompatibilityMode compatibilityMode) WritesSpreadsheetDocument
to XML.protected void
writeLanguageSettings
(ExportXmlStreamWriter streamWriter) Writes language settings.
-
Constructor Details
-
V8MoxelSerializer
Creates new serializer instance.- Parameters:
dtProject
- the dt-project, cannot benull
sheet
- the spreadsheet document, cannot benull
-
-
Method Details
-
deserializeXML
Deserializes spreadsheet document from input stream.- Parameters:
inputStream
- the input stream, cannot benull
- Throws:
XMLStreamException
- the stream read exception
-
deserializeXML
public void deserializeXML(InputStream inputStream, CompatibilityMode compatibilityMode) throws XMLStreamException Deserializes spreadsheet document from input stream with compatibility mode.- Parameters:
inputStream
- the input stream, cannot benull
compatibilityMode
- the compatibility mode, cannot benull
- Throws:
XMLStreamException
- the stream read exception
-
serializeXML
public void serializeXML(OutputStream outputStream, String lineSeparator) throws XMLStreamException, ExportException WritesSpreadsheetDocument
to XML.- Parameters:
outputStream
- stream for writing, cannot benull
lineSeparator
- the line separator to use, cannot benull
- Throws:
XMLStreamException
ExportException
-
serializeXML
public void serializeXML(OutputStream outputStream, String lineSeparator, CompatibilityMode compatibilityMode) throws XMLStreamException, ExportException WritesSpreadsheetDocument
to XML.- Parameters:
outputStream
- stream for writing, cannot benull
lineSeparator
- the line separator to use, cannot benull
compatibilityMode
- currentCompatibilityMode
, can benull
if there is no information about it- Throws:
XMLStreamException
ExportException
-
writeLanguageSettings
Writes language settings.- Parameters:
streamWriter
- the xml stream writer, cannot benull
- Throws:
XMLStreamException
- if an error occurred of write in stream
-