protected static class ScpShell.PathEntry extends Object implements Comparable<ScpShell.PathEntry>
Modifier and Type | Field and Description |
---|---|
protected Path |
abs |
protected Map<String,Object> |
attributes |
static DateTimeFormatter |
FULL_TIME_VALUE_FORMATTER |
protected Path |
path |
static DateTimeFormatter |
TIME_ONLY_VALUE_FORMATTER |
static DateTimeFormatter |
YEAR_VALUE_FORMATTER |
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
appendOwnerInformation(StringBuilder sb,
String attr,
String defaultValue) |
int |
compareTo(ScpShell.PathEntry o) |
String |
display(boolean optLongDisplay,
boolean optFullTime) |
protected boolean |
is(String attr) |
protected static Map<String,Object> |
readAttributes(Path path) |
protected String |
shortDisplay() |
String |
toString() |
protected static String |
toString(FileTime time,
boolean optFullTime) |
public static final DateTimeFormatter FULL_TIME_VALUE_FORMATTER
public static final DateTimeFormatter TIME_ONLY_VALUE_FORMATTER
public static final DateTimeFormatter YEAR_VALUE_FORMATTER
protected final Path abs
protected final Path path
public int compareTo(ScpShell.PathEntry o)
compareTo
in interface Comparable<ScpShell.PathEntry>
public String display(boolean optLongDisplay, boolean optFullTime) throws NoSuchFileException
NoSuchFileException
protected boolean is(String attr)
protected StringBuilder appendOwnerInformation(StringBuilder sb, String attr, String defaultValue)
protected String shortDisplay()
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.