class LsFormatterDirectoryHeader extends Object implements LsFormatter
LsFormatter.Factory| Modifier and Type | Field and Description |
|---|---|
(package private) static LsFormatter.Factory |
FACTORY |
| Constructor and Description |
|---|
LsFormatterDirectoryHeader(List<File> directoryFiles,
LsArguments args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
writeFormatted(File relativeTo,
File file,
LsArguments args,
LineProcessor output)
Writes information of the given file to the
output. |
static LsFormatter.Factory FACTORY
LsFormatterDirectoryHeader(List<File> directoryFiles, LsArguments args)
public boolean writeFormatted(File relativeTo, File file, LsArguments args, LineProcessor output)
LsFormatteroutput.writeFormatted in interface LsFormatterrelativeTo - 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
outputargs - 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 notCopyright © 2025. All rights reserved.