Package com._1c.g5.v8.dt.moxel.util
Class MxlSerializer
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.util.MxlSerializer
-
public class MxlSerializer extends Object
Mxl documents serializer
-
-
Constructor Summary
Constructors Constructor Description MxlSerializer(Version version, CompatibilityMode compatibilityMode)
Create ssnew instance ofMxlSerializer
MxlSerializer(Version version, CompatibilityMode compatibilityMode, org.eclipse.emf.ecore.EObject context)
Creates new instance ofMxlSerializer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpreadsheetDocument
deserializeMxl(IInPersistenceStorage storage)
Deserialize mxl documentvoid
serializeMxl(IOutPersistenceStorage storage, boolean needWriteAbsolutes)
Serialize spreadsheet documentvoid
setDocument(SpreadsheetDocument sheet)
Set spreadsheet
-
-
-
Constructor Detail
-
MxlSerializer
public MxlSerializer(Version version, CompatibilityMode compatibilityMode)
Create ssnew instance ofMxlSerializer
- Parameters:
version
- runtime version, must not benull
compatibilityMode
- currentCompatibilityMode
, can benull
if there is no information about it
-
MxlSerializer
public MxlSerializer(Version version, CompatibilityMode compatibilityMode, org.eclipse.emf.ecore.EObject context)
Creates new instance ofMxlSerializer
- Parameters:
version
- runtime version, must not benull
compatibilityMode
- currentCompatibilityMode
, can benull
if there is no information about itcontext
- context of target spreadsheet
-
-
Method Detail
-
setDocument
public void setDocument(SpreadsheetDocument sheet)
Set spreadsheet- Parameters:
sheet
- - spreadsheet document
-
serializeMxl
public void serializeMxl(IOutPersistenceStorage storage, boolean needWriteAbsolutes)
Serialize spreadsheet document- Parameters:
storage
- -IOutPersistenceStorage
- output storageneedWriteAbsolutes
- - need to write fake absolute values
-
deserializeMxl
public SpreadsheetDocument deserializeMxl(IInPersistenceStorage storage) throws IllegalArgumentException
Deserialize mxl document- Parameters:
storage
- -IInPersistenceStorage
- input storage- Returns:
- deserialized spreadsheet document
- Throws:
IOException
IllegalArgumentException
-
-