public final class ModelParser extends Object implements ValidationModelParser, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ModelParser |
createModelWithFlavour(InputStream toLoad,
PDFAFlavour flavour) |
PDFAFlavour |
getFlavour() |
PDDocument |
getPDDocument()
Get
PDDocument object for current file. |
Object |
getRoot()
Method return root object of model implementation from pdf box model
together with the hierarchy.
|
public static ModelParser createModelWithFlavour(InputStream toLoad, PDFAFlavour flavour) throws ModelParsingException
ModelParsingExceptionpublic PDDocument getPDDocument() throws IOException
PDDocument object for current file.PDDocument object of pdfbox
library.IOException - when target file is not pdf or pdf file is not contain root
objectpublic Object getRoot()
getRoot in interface ValidationModelParserCosDocumentIOException - when target file is not pdf or pdf file is not contain root
objectpublic PDFAFlavour getFlavour()
getFlavour in interface ValidationModelParserpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.