@Deprecated public class ComparisonWorkbook extends ComparisonWorkbookBase
class ComparisonWorkbook
Constructor and Description |
---|
ComparisonWorkbook()
Deprecated.
Initializes a new instance of the
ComparisonWorkbook class. |
ComparisonWorkbook(InputStream fileStream)
Deprecated.
Initializes a new instance of the
ComparisonWorkbook class. |
ComparisonWorkbook(InputStream fileStream,
String password)
Deprecated.
Initializes a new instance of the
ComparisonWorkbook class. |
ComparisonWorkbook(Object asposeObject)
Deprecated.
Initializes a new instance of the
ComparisonWorkbook class. |
ComparisonWorkbook(String fileName)
Deprecated.
Initializes a new instance of the
ComparisonWorkbook class. |
ComparisonWorkbook(String fileName,
String password)
Deprecated.
Initializes a new instance of the
ComparisonWorkbook class. |
Modifier and Type | Method and Description |
---|---|
ICellsCompareResult |
compareWith(ComparisonWorkbookBase targetWorkbook,
CellsComparisonSettings settings)
Deprecated.
Compares current workbook with another
|
Object |
getAsposeObject()
Deprecated.
|
static int |
getCellSaveFormatFromFileType(String extension)
Deprecated.
|
List<ComparisonNodeBase> |
getChildNodes()
Deprecated.
|
double |
getDocumentStreamLength()
Deprecated.
Gets the length of the document stream.
|
ComparisonWorksheetBase[] |
getWorksheets()
Deprecated.
Gets list of worksheets of current document
Value:
The worksheets.
|
void |
save(OutputStream fileStream,
int saveFormat)
Deprecated.
Saves current workbook to stream
|
void |
save(String fileName)
Deprecated.
Saves workbook with speified name
|
void |
saveAsImages(List<ByteArrayOutputStream> imagesStreams)
Deprecated.
Saves as images.
|
void |
saveAsImages(List<ByteArrayOutputStream> imagesStreams,
ComparisonCellsImageSettings settings)
Deprecated.
Saves workbook as a list of images.
|
void |
saveAsImages(String imagePath)
Deprecated.
Saves current workbook as a list of images
|
void |
saveAsImages(String folderPath,
ComparisonCellsImageSettings settings)
Deprecated.
Saves workbook as a list of images.
|
void |
saveAsImagesInternal(List<ByteArrayOutputStream> imagesStreams)
Deprecated.
|
void |
saveAsImagesInternal(List<ByteArrayOutputStream> imagesStreams,
ComparisonCellsImageSettings settings)
Deprecated.
Save as images internal.
|
void |
saveInternal(OutputStream fileStream,
int saveFormat)
Deprecated.
Save internal.
|
void |
saveWorksheetAsImage(List<ByteArrayOutputStream> imagesStreams,
ComparisonCellsImageSettings settings,
int worksheetIndex)
Deprecated.
Save worksheet as image internal.
|
void |
saveWorksheetAsImage(String folderPath,
ComparisonCellsImageSettings settings,
int worksheetIndex)
Deprecated.
Saves selected worksheet as image.
|
void |
saveWorksheetAsImageInternal(List<ByteArrayOutputStream> imagesStreams,
ComparisonCellsImageSettings settings,
int worksheetIndex)
Deprecated.
Saves selected worksheet as image into a stream.
|
setWorksheets
getChildren, updateContents
getChangeType, getStyleChanges, getText, setChangeType, setStyleChanges
public ComparisonWorkbook(InputStream fileStream) throws Exception
Initializes a new instance of the ComparisonWorkbook
class.
fileStream
- The file stream.Exception
- the exceptionpublic ComparisonWorkbook(InputStream fileStream, String password) throws Exception
Initializes a new instance of the ComparisonWorkbook
class.
fileStream
- The file stream.password
- The password.Exception
public ComparisonWorkbook(String fileName) throws Exception
Initializes a new instance of the ComparisonWorkbook
class.
fileName
- Name of the file.Exception
public ComparisonWorkbook(String fileName, String password) throws Exception
Initializes a new instance of the ComparisonWorkbook
class.
fileName
- Name of the file.password
- The password.Exception
public ComparisonWorkbook()
Initializes a new instance of the ComparisonWorkbook
class.
public ComparisonWorkbook(Object asposeObject)
Initializes a new instance of the ComparisonWorkbook
class.
asposeObject
- The aspose object.public ComparisonWorksheetBase[] getWorksheets() throws Exception
Gets list of worksheets of current document
Value: The worksheets.getWorksheets
in class ComparisonWorkbookBase
Exception
public double getDocumentStreamLength()
Gets the length of the document stream.
getDocumentStreamLength
in class ComparisonWorkbookBase
public ICellsCompareResult compareWith(ComparisonWorkbookBase targetWorkbook, CellsComparisonSettings settings) throws Exception
Compares current workbook with another
compareWith
in class ComparisonWorkbookBase
targetWorkbook
- Workbook to comparesettings
- Comparison settingsException
public void save(String fileName) throws Exception
Saves workbook with speified name
save
in class ComparisonWorkbookBase
fileName
- Name of the file.Exception
- the exceptionpublic void save(OutputStream fileStream, int saveFormat) throws Exception
Saves current workbook to stream
save
in class ComparisonWorkbookBase
fileStream
- Stream to savesaveFormat
- The file save format.Exception
- the exceptionpublic void saveInternal(OutputStream fileStream, int saveFormat) throws Exception
ComparisonWorkbookBase
saveInternal
in class ComparisonWorkbookBase
fileStream
- the file streamsaveFormat
- the save formatException
- the exceptionpublic void saveAsImages(String folderPath, ComparisonCellsImageSettings settings) throws Exception
Saves workbook as a list of images.
saveAsImages
in class ComparisonWorkbookBase
folderPath
- The path to storage where to save the document.settings
- Image saving Settings.Exception
- the exceptionpublic void saveAsImages(String imagePath) throws Exception
Saves current workbook as a list of images
imagePath
- Path to folder where to save imagesException
public void saveAsImages(List<ByteArrayOutputStream> imagesStreams) throws Exception
Saves as images.
Exception
public void saveAsImagesInternal(List<ByteArrayOutputStream> imagesStreams) throws Exception
Exception
public void saveAsImages(List<ByteArrayOutputStream> imagesStreams, ComparisonCellsImageSettings settings) throws Exception
Saves workbook as a list of images.
saveAsImages
in class ComparisonWorkbookBase
imagesStreams
- settings
- Exception
- the exceptionpublic void saveAsImagesInternal(List<ByteArrayOutputStream> imagesStreams, ComparisonCellsImageSettings settings) throws Exception
ComparisonWorkbookBase
saveAsImagesInternal
in class ComparisonWorkbookBase
imagesStreams
- the images streamssettings
- the settingsException
- the exceptionpublic void saveWorksheetAsImage(String folderPath, ComparisonCellsImageSettings settings, int worksheetIndex) throws Exception
Saves selected worksheet as image.
saveWorksheetAsImage
in class ComparisonWorkbookBase
folderPath
- The image path.settings
- The settings.worksheetIndex
- Index of the worksheet.Exception
- the exceptionpublic void saveWorksheetAsImageInternal(List<ByteArrayOutputStream> imagesStreams, ComparisonCellsImageSettings settings, int worksheetIndex) throws Exception
Saves selected worksheet as image into a stream.
saveWorksheetAsImageInternal
in class ComparisonWorkbookBase
imagesStreams
- The images streams.settings
- The settings.worksheetIndex
- Index of the worksheet.Exception
- the exceptionpublic void saveWorksheetAsImage(List<ByteArrayOutputStream> imagesStreams, ComparisonCellsImageSettings settings, int worksheetIndex) throws Exception
saveWorksheetAsImage
in class ComparisonWorkbookBase
imagesStreams
- the images streamssettings
- the settingsworksheetIndex
- the worksheet indexException
- the exceptionpublic Object getAsposeObject()
getAsposeObject
in class ComparisonNodeBase
public List<ComparisonNodeBase> getChildNodes() throws Exception
getChildNodes
in class ComparisonCompositeNodeBase
Exception
public static int getCellSaveFormatFromFileType(String extension)
Copyright © 2018. All rights reserved.