class LsFormatterLong extends Object implements LsFormatter
-rw-r--r--@ 1 myself geeks 1.6K May 8 23:20 EFMTool Test Case.zip -rw-r--r-- 1 myself myself 2.6M May 5 2011 EM_FX_RANK_2011-1.pages -rw-r--r-- 1 myself geeks 466K May 5 2011 EM_FX_RANK_2011-1.pdf -rw-r--r-- 1 myself geeks 1.3M May 5 2011 EM_FX_RANK_2011.pdf -rw-r--r--@ 1 myself geeks 118M Apr 11 2011 PS_AIO_07_B110_USW_Full_Mac_WW_11.dmg drwxrwxrwx 5 myself geeks 170B Mar 6 2011 Private Tax -rw-r--r-- 1 myself myself 37M Apr 26 2011 Scanned Image 111160000.pdf -rw-r--r-- 1 myself mysel 37M Apr 26 2011 Scanned Image 111160008.pdf drwxrwxrwx 9 myself geeks 306B Apr 19 2011 aevum drwxr-xr-x 3 myself geeks 102B Dec 21 2011 baby drwxr-xr-x 4 myself geeks 136B May 18 2011 bills drwxrwxrwx 17 myself geeks 578B Jun 15 11:21 cv
LsFormatter.Factory
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<Calendar> |
calendar |
(package private) static LsFormatter.Factory |
FACTORY |
protected ThreadLocal<Integer> |
maxSizeStringLength |
Constructor and Description |
---|
LsFormatterLong() |
Modifier and Type | Method and Description |
---|---|
protected Calendar |
getCalendar() |
protected String |
getDateTime(File file,
LsArguments args) |
protected String |
getFilePermissions(File file,
LsArguments args) |
protected String |
getGroup(File file,
LsArguments args) |
protected long |
getLastModifiedMS(File file,
LsArguments args) |
protected String |
getName(File relativeTo,
File file,
LsArguments args) |
protected String |
getOwner(File file,
LsArguments args) |
protected String |
getSize(File file,
LsArguments args) |
boolean |
writeFormatted(File relativeTo,
File file,
LsArguments args,
LineProcessor output)
Writes information of the given file to the
output . |
protected final ThreadLocal<Calendar> calendar
protected final ThreadLocal<Integer> maxSizeStringLength
static LsFormatter.Factory FACTORY
LsFormatterLong()
protected Calendar getCalendar()
public boolean writeFormatted(File relativeTo, File file, LsArguments args, LineProcessor output)
LsFormatter
output
.writeFormatted
in interface LsFormatter
relativeTo
- the starting directory to use as starting point to get to
file
; all path elements from this directory to
file
should be printedfile
- the file whose name or other information is written to
output
args
- arguments possibly used to lookup some formatting optionsoutput
- the output object to write tooutput
object is ready to take more output
lines, and false if notprotected String getFilePermissions(File file, LsArguments args)
protected String getOwner(File file, LsArguments args)
protected String getGroup(File file, LsArguments args)
protected String getSize(File file, LsArguments args)
protected long getLastModifiedMS(File file, LsArguments args)
protected String getDateTime(File file, LsArguments args)
protected String getName(File relativeTo, File file, LsArguments args)
Copyright © 2012-2018 unix4j (tools4j), Ben Warner and Marco Terzer. All rights reserved.