@Deprecated public final class XlsFormat extends DocumentFormat<XlsMetadata,XlsMetadataProperty,DocumentInfo> implements IProtectableFormat, IInspectable<XlsInspectionResult,XlsInspectionOptions>, ISignedFormat
Represents a spreadsheet document.
Constructor and Description |
---|
XlsFormat(InputStream input)
Deprecated.
Initializes a new instance of the
XlsFormat class. |
XlsFormat(InputStream input,
LoadOptions loadOptions)
Deprecated.
Initializes a new instance of the
XlsFormat class. |
XlsFormat(String fileName)
Deprecated.
Initializes a new instance of the
XlsFormat class. |
XlsFormat(String fileName,
LoadOptions loadOptions)
Deprecated.
Initializes a new instance of the
XlsFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
addContentTypeProperties(XlsContentProperty[] properties)
Deprecated.
Adds a set of content type properties to the document.
|
void |
addContentTypeProperty(XlsContentProperty property)
Deprecated.
Adds a content type property to the document.
|
void |
cleanMetadata()
Deprecated.
Removes metadata found in the document.
|
void |
clearContentTypeProperties()
Deprecated.
Removes all content type properties.
|
protected void |
dispose(boolean disposing)
Deprecated.
Releases unmanaged and optionally managed resources.
|
XlsMetadata |
getDocumentProperties()
Deprecated.
Gets the document properties in
XlsFormat . |
int |
getType()
Deprecated.
Gets the type of the loaded file.
|
boolean |
hasDigitalSignatures()
Deprecated.
Gets gets a value indicating whether the document has digital signatures.
|
XlsInspectionResult |
inspectDocument()
Deprecated.
Inspects the document and returns extracted user comments, digital signatures and hidden sheets.
|
boolean |
isProtected()
Deprecated.
Returns true if the document is encrypted and requires a password to open.
|
void |
removeHiddenData(XlsInspectionOptions options)
Deprecated.
Removes the specified hidden data.
|
clearBuiltInProperties, clearCustomProperties, extractDocumentProperties, getDocumentInfo, getFileType, getThumbnail, readDocumentPropertyByKey, readPropertyByName, readThumbnail, setProperties
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public XlsFormat(String fileName)
Initializes a new instance of the XlsFormat
class.
fileName
- A string that contains the full name of the file from which to create an XlsFormat
instance.public XlsFormat(String fileName, LoadOptions loadOptions)
Initializes a new instance of the XlsFormat
class.
fileName
- A string that contains the full name of the file from which to create an XlsFormat
instance.loadOptions
- Additional options to use when loading a document.public XlsFormat(InputStream input)
Initializes a new instance of the XlsFormat
class.
input
- A stream that contains the data for this XlsFormat
.public XlsFormat(InputStream input, LoadOptions loadOptions)
Initializes a new instance of the XlsFormat
class.
input
- A stream that contains the data for this XlsFormat
.loadOptions
- Additional options to use when loading a document.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public XlsMetadata getDocumentProperties()
Gets the document properties in XlsFormat
.
getDocumentProperties
in class DocumentFormat<XlsMetadata,XlsMetadataProperty,DocumentInfo>
public final boolean isProtected()
Returns true if the document is encrypted and requires a password to open.
isProtected
in interface IProtectableFormat
true
if document is protected; otherwise, false
.public final boolean hasDigitalSignatures()
Gets gets a value indicating whether the document has digital signatures.
hasDigitalSignatures
in interface ISignedFormat
true
if the document has digital signatures; otherwise, false
.public void cleanMetadata()
Removes metadata found in the document.
cleanMetadata
in class FormatBase
public final void addContentTypeProperties(XlsContentProperty[] properties)
Adds a set of content type properties to the document.
properties
- An array of properties.
public final void addContentTypeProperty(XlsContentProperty property)
Adds a content type property to the document.
property
- A content type property.
public final void clearContentTypeProperties()
Removes all content type properties. Not supported for the ODS format.
public final XlsInspectionResult inspectDocument()
Inspects the document and returns extracted user comments, digital signatures and hidden sheets.
inspectDocument
in interface IInspectable<XlsInspectionResult,XlsInspectionOptions>
XlsInspectionResult
.public final void removeHiddenData(XlsInspectionOptions options)
Removes the specified hidden data.
removeHiddenData
in interface IInspectable<XlsInspectionResult,XlsInspectionOptions>
options
- The inspection options.protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.Copyright © 2020. All rights reserved.