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 ItemDetailsstatic ItemDetailsstatic ItemDetailsfromValues(String name) static ItemDetailsfromValues(String name, long size) getName()longgetSize()
-
Method Details
-
getName
- Returns:
- the item name
-
getSize
public long getSize()- Returns:
- the size of the item in bytes
-
fromFile
- Parameters:
file- theFileto extract details from- Returns:
- a new
ItemDetailsinstance initialised from the passed file.
-
fromValues
- Parameters:
name- a name to identify the item- Returns:
- a new
ItemDetailsinstance 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
ItemDetailsinstance initialised from the passed parameters
-
defaultInstance
- Returns:
- the default ItemDetails instance
-