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 ofMxlSerializerMxlSerializer(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 SpreadsheetDocumentdeserializeMxl(IInPersistenceStorage storage)Deserialize mxl documentvoidserializeMxl(IOutPersistenceStorage storage, boolean needWriteAbsolutes)Serialize spreadsheet documentvoidsetDocument(SpreadsheetDocument sheet)Set spreadsheet
-
-
-
Constructor Detail
-
MxlSerializer
public MxlSerializer(Version version, CompatibilityMode compatibilityMode)
Create ssnew instance ofMxlSerializer- Parameters:
version- runtime version, must not benullcompatibilityMode- currentCompatibilityMode, can benullif 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 benullcompatibilityMode- currentCompatibilityMode, can benullif 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:
IOExceptionIllegalArgumentException
-
-