|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.eways.batchext.FtpHeuristicsFile
public class FtpHeuristicsFile
This class is an FTP file representation.
| Field Summary | |
|---|---|
static int |
DIRECTORY_TYPE
|
static int |
FILE_TYPE
|
static boolean |
REAL_DATA_AVAILABLE
|
static boolean |
REAL_DATA_NOT_AVAILABLE
|
static int |
SYMBOLIC_LINK_TYPE
|
static int |
UNKNOWN_TYPE
|
| Constructor Summary | |
|---|---|
FtpHeuristicsFile()
Creates a new FtpHeuristicsFile object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getLink()
Gets the link type. |
java.lang.String |
getName()
Gets the file name. |
java.lang.String |
getRawListing()
Gets a raw line from the listing. |
long |
getSize()
Gets the file size. |
int |
getType()
Gets the file type. |
boolean |
isDataAvailable()
Checks on the status of the data. |
boolean |
isDirectory()
Checks on whether the file is a directory. |
boolean |
isFile()
Checks on whether the file is a normal file. |
boolean |
isSymbolicLink()
Checks on whether the file is a symbolic link. |
boolean |
isUnknown()
Checks on whether the file type is unknown. |
static void |
main(java.lang.String[] args)
Used to do stand-alone testing. |
void |
setDataAvailable(boolean newDataAvailable)
Accessor - Sets the data-available indication to true or false. |
void |
setLink(java.lang.String s)
Sets the link type. |
void |
setName(java.lang.String s)
Sets the file name. |
void |
setRawListing(java.lang.String s)
Sets a raw line from the listing. |
void |
setSize(long l)
Sets the file size. |
void |
setType(int i)
Sets the file type. |
java.lang.String |
toString()
Returns the raw content for the toString() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FILE_TYPE
public static final int DIRECTORY_TYPE
public static final int SYMBOLIC_LINK_TYPE
public static final int UNKNOWN_TYPE
public static final boolean REAL_DATA_AVAILABLE
public static final boolean REAL_DATA_NOT_AVAILABLE
| Constructor Detail |
|---|
public FtpHeuristicsFile()
| Method Detail |
|---|
public void setRawListing(java.lang.String s)
s - The raw line from the listing.public java.lang.String getRawListing()
public boolean isDirectory()
public boolean isFile()
public boolean isSymbolicLink()
public boolean isUnknown()
public void setType(int i)
i - The file type.public int getType()
public void setName(java.lang.String s)
s - The file name.public java.lang.String getName()
public void setSize(long l)
l - The file size.public long getSize()
public void setLink(java.lang.String s)
s - The link type.public java.lang.String getLink()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDataAvailable()
public void setDataAvailable(boolean newDataAvailable)
newDataAvailable - : true or false.public static void main(java.lang.String[] args)
args - Command-line parameters.
|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||