org.nees.tools.agent.beans
Class FileList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byorg.nees.tools.agent.beans.SortVector
                  extended byorg.nees.tools.agent.beans.FileList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, FileListInterface, java.util.List, java.util.RandomAccess, java.io.Serializable

public class FileList
extends SortVector
implements FileListInterface

See Also:
Serialized Form

Nested Class Summary
 class FileList.FileRecord
           
 
Field Summary
protected  FileExtensionFilter fileExtensionFilter
           
protected  java.lang.String fileHead
           
protected  ScraperConfiguration uploadProperties
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.nees.tools.agent.beans.FileListInterface
NUMBER_DELIMITER, WRITTEN_SUFFIX
 
Constructor Summary
FileList()
          FileList constructor comment.
FileList(ScraperConfiguration uploadProperties)
          FileList constructor comment.
FileList(ScraperConfiguration uploadProperties, java.lang.String fileHead)
          FileList constructor comment.
 
Method Summary
 void addFile(java.io.File f)
           
 void clearFiles()
          Removes all files found by this class.
 java.io.File fileAt(int index)
           
protected  int fileIndexAt(int index)
           
 long getByteCount()
           
protected  FileExtensionFilter getFileExtensionFilter()
           
 java.lang.String getFileHead()
           
protected  int getFileIndex(java.lang.String filename)
           
protected  ScraperConfiguration getUploadProperties()
           
 boolean hasIndex(int index)
          hasIndex method comment.
 boolean hasSequenceGaps()
          hasSequenceGaps method comment.
static void main(java.lang.String[] args)
           
protected  void setFileExtensionFilter(FileExtensionFilter newFileExtensionFilter)
           
protected  void setFileHead(java.lang.String newFileHead)
           
protected  void setUploadProperties(ScraperConfiguration newUploadProperties)
           
 
Methods inherited from class org.nees.tools.agent.beans.SortVector
addSortable, getSortableAt, isSorted, setSorted, sort
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nees.tools.agent.beans.FileListInterface
isEmpty, size
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

fileExtensionFilter

protected FileExtensionFilter fileExtensionFilter

uploadProperties

protected ScraperConfiguration uploadProperties

fileHead

protected java.lang.String fileHead
Constructor Detail

FileList

public FileList()
FileList constructor comment.


FileList

public FileList(ScraperConfiguration uploadProperties)
         throws java.lang.Exception
FileList constructor comment.


FileList

public FileList(ScraperConfiguration uploadProperties,
                java.lang.String fileHead)
         throws java.lang.Exception
FileList constructor comment.

Method Detail

addFile

public void addFile(java.io.File f)
             throws java.lang.Exception
Specified by:
addFile in interface FileListInterface
Throws:
java.lang.Exception

clearFiles

public void clearFiles()
                throws java.lang.Exception
Removes all files found by this class. THis really does delete them and the .written files from the hard drive.

Specified by:
clearFiles in interface FileListInterface
Throws:
java.lang.Exception

fileAt

public java.io.File fileAt(int index)
Specified by:
fileAt in interface FileListInterface

fileIndexAt

protected int fileIndexAt(int index)

getByteCount

public long getByteCount()
Returns:
long

getFileExtensionFilter

protected FileExtensionFilter getFileExtensionFilter()
                                              throws java.lang.Exception
Returns:
org.nees.tools.scraper.FileExtensionFilter
Throws:
java.lang.Exception

getFileHead

public java.lang.String getFileHead()
Specified by:
getFileHead in interface FileListInterface
Returns:
java.lang.String

getFileIndex

protected int getFileIndex(java.lang.String filename)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getUploadProperties

protected ScraperConfiguration getUploadProperties()
Returns:
org.nees.tools.scraper.ScraperConfiguration

hasIndex

public boolean hasIndex(int index)
                 throws java.lang.Exception
hasIndex method comment.

Specified by:
hasIndex in interface FileListInterface
Throws:
java.lang.Exception

hasSequenceGaps

public boolean hasSequenceGaps()
                        throws java.lang.Exception
hasSequenceGaps method comment.

Specified by:
hasSequenceGaps in interface FileListInterface
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)

setFileExtensionFilter

protected void setFileExtensionFilter(FileExtensionFilter newFileExtensionFilter)
Parameters:
newFileExtensionFilter - org.nees.tools.scraper.FileExtensionFilter

setFileHead

protected void setFileHead(java.lang.String newFileHead)
Parameters:
newFileHead - java.lang.String

setUploadProperties

protected void setUploadProperties(ScraperConfiguration newUploadProperties)
Parameters:
newUploadProperties - org.nees.tools.scraper.ScraperConfiguration