Package org.verapdf.processor.reports
Class ItemDetails
java.lang.Object
org.verapdf.processor.reports.ItemDetails
Encapsulates the details of a PDF document, just the name and the size in
bytes.
- Author:
- Carl Wilson
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemDetails
static ItemDetails
static ItemDetails
fromValues
(String name) static ItemDetails
fromValues
(String name, long size) getName()
long
getSize()
-
Method Details
-
getName
- Returns:
- the item name
-
getSize
public long getSize()- Returns:
- the size of the item in bytes
-
fromFile
- Parameters:
file
- theFile
to extract details from- Returns:
- a new
ItemDetails
instance initialised from the passed file.
-
fromValues
- Parameters:
name
- a name to identify the item- Returns:
- a new
ItemDetails
instance with the given name and -1 (unknown) as the size in bytes;
-
fromValues
- Parameters:
name
- a name to identify the itemsize
- the size of the item in bytes.- Returns:
- a new
ItemDetails
instance initialised from the passed parameters
-
defaultInstance
- Returns:
- the default ItemDetails instance
-