public class PEFBook
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
containsEightDot()
Returns true if this document contains eight dot patterns, false otherwise
|
boolean |
equals(java.lang.Object obj) |
java.lang.Iterable<java.lang.String> |
getAuthors()
Gets the document authors from this document's metadata.
|
int |
getFirstPage(int volume)
Gets the first page number in the specified volume
|
java.lang.String |
getInputEncoding()
Gets the encoding used for this document at the time of the parsing.
|
int |
getLastPage(int volume)
Gets the last page number in the specified volume
|
int |
getMaxHeight()
Gets the maximum defined page height, in rows
|
int |
getMaxWidth()
Gets the maximum defined page width, in chars
|
java.lang.Iterable<java.lang.String> |
getMetadata(java.lang.String key)
Gets a collection of values for a specfied metadata key.
|
java.lang.Iterable<java.lang.String> |
getMetadataKeys()
Gets a collection of all metadata keys in this document.
|
int |
getPages()
Gets the total number of pages in this document
|
int |
getPageTags()
Gets the number of page tags in this document.
|
int |
getSheets()
Gets the number of sheets in this document.
|
int |
getSheets(int volume)
Gets the number of sheets in the specified volume
|
java.lang.Iterable<java.lang.String> |
getTitle()
Gets the document title from this document's metadata.
|
int |
getVolumes()
Gets the number of volumes in this document.
|
int |
hashCode() |
static PEFBook |
load(java.net.URI uri)
Loads information about a PEF-document from the supplied uri.
|
java.lang.String |
toString() |
public static PEFBook load(java.net.URI uri) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, javax.xml.xpath.XPathExpressionException, java.io.IOException
uri
- the uri to a PEF-documentjavax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
java.io.IOException
public java.lang.String getInputEncoding()
public int getVolumes()
public int getPages()
public int getPageTags()
public int getSheets()
public int getSheets(int volume)
volume
- the desired volume, where the first volume is 1 and the last equals getVolumesjava.lang.IllegalArgumentException
- if the volume is less than 1 or greater than getVolumespublic int getFirstPage(int volume)
volume
- the desired volume, where the first volume is 1 and the last equals getVolumes.java.lang.IllegalArgumentException
- if the volume is less than 1 or greater than getVolumespublic int getLastPage(int volume)
volume
- the desired volume (the first volume is 1 and the last is getVolumes)java.lang.IllegalArgumentException
- if the volume is less than 1 or greater than getVolumespublic int getMaxWidth()
public int getMaxHeight()
public boolean containsEightDot()
public java.lang.Iterable<java.lang.String> getMetadataKeys()
public java.lang.Iterable<java.lang.String> getMetadata(java.lang.String key)
key
- the metadata to get values forpublic java.lang.Iterable<java.lang.String> getTitle()
public java.lang.Iterable<java.lang.String> getAuthors()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object