public class ItemDetails extends Object
| Modifier and Type | Method and Description |
|---|---|
static ItemDetails |
defaultInstance() |
static ItemDetails |
fromFile(File file) |
static ItemDetails |
fromValues(String name) |
static ItemDetails |
fromValues(String name,
long size) |
String |
getName() |
long |
getSize() |
public String getName()
public long getSize()
public static ItemDetails fromFile(File file)
file - the File to extract details fromItemDetails instance initialised from the passed
file.public static ItemDetails fromValues(String name)
name - a name to identify the itemItemDetails instance with the given name and -1
(unknown) as the size in bytes;public static ItemDetails fromValues(String name, long size)
name - a name to identify the itemsize - the size of the item in bytes.ItemDetails instance initialised from the passed
parameterspublic static ItemDetails defaultInstance()
Copyright © 2015–2018 The veraPDF Consortium. All rights reserved.