|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.batch.FileBatchJob dk.netarkivet.common.utils.batch.FileListJob
public class FileListJob
A batch job which returns a list of all files in the bitarchive in which it runs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class dk.netarkivet.common.utils.batch.FileBatchJob |
---|
FileBatchJob.ExceptionOccurrence |
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
The class logger. |
Fields inherited from class dk.netarkivet.common.utils.batch.FileBatchJob |
---|
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed |
Constructor Summary | |
---|---|
FileListJob()
The constructor. |
Method Summary | |
---|---|
void |
finish(java.io.OutputStream os)
Does nothing. |
void |
initialize(java.io.OutputStream os)
Initializes fields in this class. |
boolean |
processFile(java.io.File file,
java.io.OutputStream os)
Writes the name of the arcfile to the OutputStream. |
java.lang.String |
toString()
Return a human-readable representation of a FileListJob. |
Methods inherited from class dk.netarkivet.common.utils.batch.FileBatchJob |
---|
addException, addFinishException, addInitializeException, getBatchJobTimeout, getExceptions, getFilenamePattern, getFilesFailed, getNoOfFilesProcessed, maxExceptionsReached, postProcess, processOnlyFileNamed, processOnlyFilesMatching, processOnlyFilesMatching, processOnlyFilesNamed, setBatchJobTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient org.apache.commons.logging.Log log
Constructor Detail |
---|
public FileListJob()
Method Detail |
---|
public void initialize(java.io.OutputStream os)
initialize
in class FileBatchJob
os
- the OutputStream to which data is to be writtenpublic boolean processFile(java.io.File file, java.io.OutputStream os)
processFile
in class FileBatchJob
file
- an arcfileos
- the OutputStream to which data is to be written
public void finish(java.io.OutputStream os)
finish
in class FileBatchJob
os
- the OutputStream to which data is to be writtenpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |