public final class OneNoteFormat extends FormatBase implements IProtectableFormat
Represents OneNote format.
Constructor and Description |
---|
OneNoteFormat(InputStream input)
Initializes a new instance of the
OneNoteFormat class. |
OneNoteFormat(InputStream input,
LoadOptions loadOptions)
Initializes a new instance of the
OneNoteFormat class. |
OneNoteFormat(String fileName)
Initializes a new instance of the
OneNoteFormat class. |
OneNoteFormat(String fileName,
LoadOptions loadOptions)
Initializes a new instance of the
OneNoteFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes (resets) metadata.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
OneNotePageInfo[] |
getPages()
Gets array of
OneNotePageInfo presented in document. |
int |
getType()
Gets document type.
|
boolean |
isProtected()
Returns true if the document is encrypted and requires a password to open.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public OneNoteFormat(String fileName)
Initializes a new instance of the OneNoteFormat
class.
fileName
- The file name.public OneNoteFormat(String fileName, LoadOptions loadOptions)
Initializes a new instance of the OneNoteFormat
class.
fileName
- The absolute path to the file.loadOptions
- Additional options to use when loading the document.public OneNoteFormat(InputStream input)
Initializes a new instance of the OneNoteFormat
class.
input
- The input.public OneNoteFormat(InputStream input, LoadOptions loadOptions)
Initializes a new instance of the OneNoteFormat
class.
input
- The stream containing the file.loadOptions
- Additional options to use when loading the document.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 int getType()
Gets document type.
getType
in class FormatBase
public final OneNotePageInfo[] getPages()
Gets array of OneNotePageInfo
presented in document.
OneNotePageInfo
.public void cleanMetadata()
Removes (resets) metadata.
cleanMetadata
in class FormatBase
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 © 2019. All rights reserved.