org.imirsel.m2k.io
Class FileListWithClass

java.lang.Object
  extended byorg.imirsel.m2k.io.FileListWithClass
All Implemented Interfaces:
java.io.Serializable

public class FileListWithClass
extends java.lang.Object
implements java.io.Serializable

Represents a class of data as a list of filenames with a classname

Author:
kw
See Also:
Serialized Form

Constructor Summary
FileListWithClass()
          Creates a new instance of FileListWithClass
FileListWithClass(java.lang.String className_)
          Creates a new instance of FileListWithClass
FileListWithClass(java.lang.String className_, java.lang.String[] fileList_)
          Creates a new instance of FileListWithClass
 
Method Summary
 void addFile(java.lang.String file)
          Adds a file to the list
 java.lang.String entryAt(int i)
          Returns a single filename from the list, specified by the index supplied
 java.lang.String getClassName()
          Returns the class name applied to all of the files in the list
 int length()
          Returns the length of the list
 java.lang.String[] returnList()
          Returns a String[] containing all of the filenames in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileListWithClass

public FileListWithClass()
Creates a new instance of FileListWithClass


FileListWithClass

public FileListWithClass(java.lang.String className_)
Creates a new instance of FileListWithClass

Parameters:
className_ - The name of the new class

FileListWithClass

public FileListWithClass(java.lang.String className_,
                         java.lang.String[] fileList_)
Creates a new instance of FileListWithClass

Parameters:
className_ - The name of the new class
fileList_ - The list of files
Method Detail

addFile

public void addFile(java.lang.String file)
Adds a file to the list

Parameters:
file - the filename to add to the list

length

public int length()
Returns the length of the list

Returns:
the length of the list

entryAt

public java.lang.String entryAt(int i)
Returns a single filename from the list, specified by the index supplied

Parameters:
i - the index of the filename to be returned from the list
Returns:
the filename returned

returnList

public java.lang.String[] returnList()
Returns a String[] containing all of the filenames in the list

Returns:
A string array containing all of the filenames in the list

getClassName

public java.lang.String getClassName()
Returns the class name applied to all of the files in the list

Returns:
the class name applied to all of the files in the list