|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.download.Fileset
public class Fileset
Fileset
is a data object. It contains the information for a
list of files that can be downloaded for a particular source.
Field Summary | |
---|---|
static int |
FTP_FILESET
Identifies the fileset as an FTP Fileset |
static int |
HTTP_FILESET
Identifies the fileset as a HTTP Fileset |
static int |
LOCAL_FILESET
Constants that identify the supported file types |
static int |
SFTP_FILESET
Identifies the fileset as an SFTP Fileset |
Constructor Summary | |
---|---|
Fileset(java.lang.String filesetName,
int type)
Creates a Fileset object with the passed name |
|
Fileset(java.lang.String filesetName,
int type,
java.lang.String typeString)
Creates a fileset object with the passed parameters |
Method Summary | |
---|---|
void |
addFile(java.lang.String fileName)
Adds a filename to the list of files |
java.lang.String |
getFile(int index)
Returns the file at the index specified. |
int |
getFileCount()
Returns the number of files in the Fileset. |
java.util.List |
getFileList()
Returns the list of files. |
java.lang.String |
getFilesetName()
|
int |
getType()
Returns the type of the fileset. |
java.lang.String |
getTypeString()
|
java.util.Iterator |
iterateFiles()
Returns an iterator for the files in the Fileset. |
void |
setFileList(java.util.List fileList)
sets the file list for the Fileset |
void |
setTypeString(java.lang.String typeString)
|
java.lang.String |
toString()
Returns the information about this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LOCAL_FILESET
public static final int FTP_FILESET
public static final int HTTP_FILESET
public static final int SFTP_FILESET
Constructor Detail |
---|
public Fileset(java.lang.String filesetName, int type)
filesetName
- the name of the fileset.type
- identifies the type of the fileset. Should be one of the type
constants defined in this class.public Fileset(java.lang.String filesetName, int type, java.lang.String typeString)
filesetName
- the name of the fileset.type
- identifies the type of the fileset. Should be one of the type
constants defined in this class.typeString
- String identifying the typeMethod Detail |
---|
public java.lang.String getTypeString()
public void setTypeString(java.lang.String typeString)
typeString
- The typeString to set.public java.lang.String getFilesetName()
public int getType()
public void setFileList(java.util.List fileList)
fileList
- list for the Filesetpublic java.util.List getFileList()
public void addFile(java.lang.String fileName)
fileName
- public int getFileCount()
public java.lang.String getFile(int index)
index
- The index from where to get the file.
java.lang.ArrayIndexOutOfBoundsException
- If no files are present or no file
is present at the index specified.public java.util.Iterator iterateFiles()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |