public final class OneNoteFormat extends FormatBase implements IProtectableFormat
Represents a OneNote section file.
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 metadata found in the document.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
OneNotePageInfo[] |
getPages()
Gets an array of the pages extracted from the loaded section.
|
int |
getType()
Gets the type of the loaded file.
|
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
- A string that contains the full name of the file from which to create a OneNoteFormat
instance.public OneNoteFormat(String fileName, LoadOptions loadOptions)
Initializes a new instance of the OneNoteFormat
class.
fileName
- A string that contains the full name of the file from which to create a OneNoteFormat
instance.loadOptions
- Additional options to use when loading a document.public OneNoteFormat(InputStream input)
Initializes a new instance of the OneNoteFormat
class.
input
- A stream that contains the data for this OneNoteFormat
.public OneNoteFormat(InputStream input, LoadOptions loadOptions)
Initializes a new instance of the OneNoteFormat
class.
input
- A stream that contains the data for this OneNoteFormat
.loadOptions
- Additional options to use when loading a 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 the type of the loaded file.
getType
in class FormatBase
public final OneNotePageInfo[] getPages()
Gets an array of the pages extracted from the loaded section.
public void cleanMetadata()
Removes metadata found in the document.
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.