|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.bitarchive.BitarchiveARCFile
public class BitarchiveARCFile
The representation of an ARC file in the bit archive. This class keeps the connection between the name that was used for lookup and the file that was found.
Constructor Summary | |
---|---|
BitarchiveARCFile(java.lang.String fn,
java.io.File fp)
Create a new representation of a file in the archive. |
Method Summary | |
---|---|
boolean |
exists()
Return true if the file exists, false otherwise. |
java.io.File |
getFilePath()
Get the full file path of this file. |
java.lang.String |
getName()
Get the ARC name of this file. |
long |
getSize()
Get the size of this file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitarchiveARCFile(java.lang.String fn, java.io.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.Method Detail |
---|
public boolean exists()
public java.lang.String getName()
public java.io.File getFilePath()
public long getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |