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 Pathabsprotected Map<String,Object>attributesstatic DateTimeFormatterFULL_TIME_VALUE_FORMATTERprotected Pathpathstatic DateTimeFormatterTIME_ONLY_VALUE_FORMATTERstatic DateTimeFormatterYEAR_VALUE_FORMATTER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringBuilderappendOwnerInformation(StringBuilder sb, String attr, String defaultValue)intcompareTo(ScpShell.PathEntry o)Stringdisplay(boolean optLongDisplay, boolean optFullTime)protected booleanis(String attr)protected static Map<String,Object>readAttributes(Path path)protected StringshortDisplay()StringtoString()protected static StringtoString(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:
compareToin 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()
-
-