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)
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 notCopyright © 2024. All rights reserved.