public class BitarchiveARCFile extends Object
Constructor and Description |
---|
BitarchiveARCFile(String fn,
File fp)
Create a new representation of a file in the archive.
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Return true if the file exists, false otherwise.
|
File |
getFilePath()
Get the full file path of this file.
|
String |
getName()
Get the ARC name of this file.
|
long |
getSize()
Get the size of this file.
|
public BitarchiveARCFile(String fn, File fp) throws ArgumentNotValid
fn
is not necessarily, though
probably, the same as fp.getName()
.
Failed lookups should be represented by null references rather than an object representing something that doesn't exist.
fn
- The ARC name of the file, as used in lookup in the archive.fp
- The actual path of the file in the archive.ArgumentNotValid
- if either argument is null, or any of the file name representaitons is the empty string.public boolean exists()
public String getName()
public File getFilePath()
public long getSize()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.