Package org.apache.sshd.scp.server
Class ScpShell.PathEntry
- java.lang.Object
-
- org.apache.sshd.scp.server.ScpShell.PathEntry
-
- All Implemented Interfaces:
Comparable<ScpShell.PathEntry>
- Enclosing class:
- ScpShell
protected static class ScpShell.PathEntry extends Object implements Comparable<ScpShell.PathEntry>
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
FULL_TIME_VALUE_FORMATTER
public static final DateTimeFormatter FULL_TIME_VALUE_FORMATTER
-
TIME_ONLY_VALUE_FORMATTER
public static final DateTimeFormatter TIME_ONLY_VALUE_FORMATTER
-
YEAR_VALUE_FORMATTER
public static final DateTimeFormatter YEAR_VALUE_FORMATTER
-
abs
protected final Path abs
-
path
protected final Path path
-
-
Method Detail
-
compareTo
public int compareTo(ScpShell.PathEntry o)
- Specified by:
compareTo
in interfaceComparable<ScpShell.PathEntry>
-
display
public String display(boolean optLongDisplay, boolean optFullTime) throws NoSuchFileException
- Throws:
NoSuchFileException
-
is
protected boolean is(String attr)
-
appendOwnerInformation
protected StringBuilder appendOwnerInformation(StringBuilder sb, String attr, String defaultValue)
-
shortDisplay
protected String shortDisplay()
-
-