public class NoteRootPackage extends RootMetadataPackage
Represents the root package intended to work with metadata in an electronic note file.
Learn more
This code sample demonstrates how to inspect a note document.
try (Metadata metadata = new Metadata(Constants.InputOne)) { NoteRootPackage root = metadata.getRootPackageGeneric(); if (root.getInspectionPackage().getPages() != null) { for (NotePage page : root.getInspectionPackage().getPages()) { System.out.println(page.getTitle()); System.out.println(page.getAuthor()); System.out.println(page.getCreationTime()); System.out.println(page.getLastModificationTime()); } } }
Modifier and Type | Method and Description |
---|---|
DocumentStatistics |
getDocumentStatistics()
Gets the document statistics package.
|
NoteInspectionPackage |
getInspectionPackage()
Gets a metadata package containing inspection results for the document.
|
getFileType, sanitize
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final NoteInspectionPackage getInspectionPackage()
Gets a metadata package containing inspection results for the document. The package contains information about document parts that can be considered as metadata in some cases.
public final DocumentStatistics getDocumentStatistics()
Gets the document statistics package.