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 TypeMethodDescriptionvoiddeserializeXML(InputStream inputStream) Deserializes spreadsheet document from input stream.voiddeserializeXML(InputStream inputStream, CompatibilityMode compatibilityMode) Deserializes spreadsheet document from input stream with compatibility mode.voidserializeXML(OutputStream outputStream, String lineSeparator) WritesSpreadsheetDocumentto XML.voidserializeXML(OutputStream outputStream, String lineSeparator, CompatibilityMode compatibilityMode) WritesSpreadsheetDocumentto XML.protected voidwriteLanguageSettings(ExportXmlStreamWriter streamWriter) Writes language settings.
-
Constructor Details
-
V8MoxelSerializer
Creates new serializer instance.- Parameters:
dtProject- the dt-project, cannot benullsheet- 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 benullcompatibilityMode- the compatibility mode, cannot benull- Throws:
XMLStreamException- the stream read exception
-
serializeXML
public void serializeXML(OutputStream outputStream, String lineSeparator) throws XMLStreamException, ExportException WritesSpreadsheetDocumentto XML.- Parameters:
outputStream- stream for writing, cannot benulllineSeparator- the line separator to use, cannot benull- Throws:
XMLStreamExceptionExportException
-
serializeXML
public void serializeXML(OutputStream outputStream, String lineSeparator, CompatibilityMode compatibilityMode) throws XMLStreamException, ExportException WritesSpreadsheetDocumentto XML.- Parameters:
outputStream- stream for writing, cannot benulllineSeparator- the line separator to use, cannot benullcompatibilityMode- currentCompatibilityMode, can benullif there is no information about it- Throws:
XMLStreamExceptionExportException
-
writeLanguageSettings
Writes language settings.- Parameters:
streamWriter- the xml stream writer, cannot benull- Throws:
XMLStreamException- if an error occurred of write in stream
-