|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tools.io.Dir
Lists contents of a given path in the local file system.
Constructor Summary | |
Dir()
|
Method Summary | |
static void |
main(String[] argv)
|
private static String |
trimDate(long time)
Returns the string representation of a date given in milliseconds since January 1, 1970, 00:00:00 GMT. |
private static String |
trimLong(long l)
Returns the string representation of a long, trimmed to the maximum length of a long by filling the string with whitespaces from the left. |
private static String |
trimString(String str,
int maxlen)
If the length of the given string is less than the given length, then the string is trimmed by inserting whitespaces from the left till the given length is reached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Dir()
Method Detail |
private static String trimString(String str, int maxlen)
private static String trimLong(long l)
private static String trimDate(long time)
public static void main(String[] argv) throws FileNotFoundException, IOException
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |