|
Secure FTP Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jscape.inet.file.JFileType
public class JFileType
POSIX file type. "Typesafe enum" pattern.
| Field Summary | |
|---|---|
static JFileType |
BLOCK_ORIENTED
Block-oriented file. |
static JFileType |
CHAR_ORIENTED
Character-oriented file. |
static JFileType |
DIRECTORY
Directory. |
static JFileType |
FIFO
FIFO file. |
static JFileType |
REGULAR
Regular file. |
static JFileType |
SOCKET
Socket. |
static JFileType |
SYMBOLIC
Symbolic link. |
static JFileType |
UNKNOWN
Unknown type. |
| Method Summary | |
|---|---|
char |
getCharacter()
Obtains type char. |
int |
getCode()
Obtains type code value. |
static JFileType |
getTypeFor(int value)
Obtains POSIX file type object for specified integer value. |
static JFileType |
getTypeFor(java.lang.String value)
Obtains POSIX file type object for specified string. |
java.lang.String |
toString()
Obtains type string representation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final JFileType FIFO
public static final JFileType CHAR_ORIENTED
public static final JFileType DIRECTORY
public static final JFileType BLOCK_ORIENTED
public static final JFileType REGULAR
public static final JFileType SYMBOLIC
public static final JFileType SOCKET
public static final JFileType UNKNOWN
| Method Detail |
|---|
public static JFileType getTypeFor(int value)
value - POSIX permissions value
POSIZFileType.UNKNOWN if type cannot be determined.public static JFileType getTypeFor(java.lang.String value)
value - POSIX permissions line
POSIZFileType.UNKNOWN if type cannot be determined.public int getCode()
public char getCharacter()
public java.lang.String toString()
toString in class java.lang.Object
|
Secure FTP Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||