protected static class ScpShell.PathEntry extends java.lang.Object implements java.lang.Comparable<ScpShell.PathEntry>
Modifier and Type | Field and Description |
---|---|
protected java.nio.file.Path |
abs |
protected java.util.Map<java.lang.String,java.lang.Object> |
attributes |
static java.time.format.DateTimeFormatter |
FULL_TIME_VALUE_FORMATTER |
protected java.nio.file.Path |
path |
static java.time.format.DateTimeFormatter |
TIME_ONLY_VALUE_FORMATTER |
static java.time.format.DateTimeFormatter |
YEAR_VALUE_FORMATTER |
Constructor and Description |
---|
PathEntry(java.nio.file.Path abs,
java.nio.file.Path root) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.StringBuilder |
appendOwnerInformation(java.lang.StringBuilder sb,
java.lang.String attr,
java.lang.String defaultValue) |
int |
compareTo(ScpShell.PathEntry o) |
java.lang.String |
display(boolean optLongDisplay,
boolean optFullTime) |
protected boolean |
is(java.lang.String attr) |
protected static java.util.Map<java.lang.String,java.lang.Object> |
readAttributes(java.nio.file.Path path) |
protected java.lang.String |
shortDisplay() |
java.lang.String |
toString() |
protected static java.lang.String |
toString(java.nio.file.attribute.FileTime time,
boolean optFullTime) |
public static final java.time.format.DateTimeFormatter FULL_TIME_VALUE_FORMATTER
public static final java.time.format.DateTimeFormatter TIME_ONLY_VALUE_FORMATTER
public static final java.time.format.DateTimeFormatter YEAR_VALUE_FORMATTER
protected final java.nio.file.Path abs
protected final java.nio.file.Path path
protected final java.util.Map<java.lang.String,java.lang.Object> attributes
public int compareTo(ScpShell.PathEntry o)
compareTo
in interface java.lang.Comparable<ScpShell.PathEntry>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String display(boolean optLongDisplay, boolean optFullTime) throws java.nio.file.NoSuchFileException
java.nio.file.NoSuchFileException
protected boolean is(java.lang.String attr)
protected java.lang.StringBuilder appendOwnerInformation(java.lang.StringBuilder sb, java.lang.String attr, java.lang.String defaultValue)
protected java.lang.String shortDisplay()
protected static java.lang.String toString(java.nio.file.attribute.FileTime time, boolean optFullTime)
protected static java.util.Map<java.lang.String,java.lang.Object> readAttributes(java.nio.file.Path path)