|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.arcrepository.BitarchiveRecord
public class BitarchiveRecord
Class to hold the result of a lookup operation in the bitarchive: The metadata information associated with the record The actual byte content The name of the file the data were retrieved from If length of record exceeds value of Settings.BITARCHIVE_LIMIT_FOR_RECORD_DATATRANSFER_IN_FILE The record is stored in a RemoteFile.
Constructor Summary | |
---|---|
BitarchiveRecord(org.archive.io.ArchiveRecord record,
java.lang.String filename)
Creates a BitarchiveRecord from the a ArchiveRecord, which can be either a ARCRecord or WARCRecord. |
Method Summary | |
---|---|
java.io.InputStream |
getData()
Retrieve the data in the record. |
void |
getData(java.io.OutputStream out)
Deliver the data in the record to a given OutputStream. |
java.lang.String |
getFile()
Returns the file that this information was loaded from. |
long |
getLength()
Returns the length of the ARCRecord contained. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitarchiveRecord(org.archive.io.ArchiveRecord record, java.lang.String filename)
record
- the ArchiveRecord that the data should come from. We do not
close the ArchiveRecord.filename
- The filename of the ArchiveFileMethod Detail |
---|
public java.lang.String getFile()
public long getLength()
public java.io.InputStream getData()
IllegalState
- if remotefile already deletedpublic void getData(java.io.OutputStream out)
out
- deliver the data to this outputstream
IOFailure
- if any IOException occurs reading or writing the data
IllegalState
- if remotefile already deleted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |