Package org.apache.sshd.scp.server
Class ScpShell.PathEntry
- java.lang.Object
-
- org.apache.sshd.scp.server.ScpShell.PathEntry
-
- All Implemented Interfaces:
java.lang.Comparable<ScpShell.PathEntry>
- Enclosing class:
- ScpShell
protected static class ScpShell.PathEntry extends java.lang.Object implements java.lang.Comparable<ScpShell.PathEntry>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.Pathabsprotected java.util.Map<java.lang.String,java.lang.Object>attributesstatic java.time.format.DateTimeFormatterFULL_TIME_VALUE_FORMATTERprotected java.nio.file.Pathpathstatic java.time.format.DateTimeFormatterTIME_ONLY_VALUE_FORMATTERstatic java.time.format.DateTimeFormatterYEAR_VALUE_FORMATTER
-
Constructor Summary
Constructors Constructor Description PathEntry(java.nio.file.Path abs, java.nio.file.Path root)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringBuilderappendOwnerInformation(java.lang.StringBuilder sb, java.lang.String attr, java.lang.String defaultValue)intcompareTo(ScpShell.PathEntry o)java.lang.Stringdisplay(boolean optLongDisplay, boolean optFullTime)protected booleanis(java.lang.String attr)protected static java.util.Map<java.lang.String,java.lang.Object>readAttributes(java.nio.file.Path path)protected java.lang.StringshortDisplay()java.lang.StringtoString()protected static java.lang.StringtoString(java.nio.file.attribute.FileTime time, boolean optFullTime)
-
-
-
Field Detail
-
FULL_TIME_VALUE_FORMATTER
public static final java.time.format.DateTimeFormatter FULL_TIME_VALUE_FORMATTER
-
TIME_ONLY_VALUE_FORMATTER
public static final java.time.format.DateTimeFormatter TIME_ONLY_VALUE_FORMATTER
-
YEAR_VALUE_FORMATTER
public static final java.time.format.DateTimeFormatter YEAR_VALUE_FORMATTER
-
abs
protected final java.nio.file.Path abs
-
path
protected final java.nio.file.Path path
-
attributes
protected final java.util.Map<java.lang.String,java.lang.Object> attributes
-
-
Method Detail
-
compareTo
public int compareTo(ScpShell.PathEntry o)
- Specified by:
compareToin interfacejava.lang.Comparable<ScpShell.PathEntry>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
display
public java.lang.String display(boolean optLongDisplay, boolean optFullTime) throws java.nio.file.NoSuchFileException- Throws:
java.nio.file.NoSuchFileException
-
is
protected boolean is(java.lang.String attr)
-
appendOwnerInformation
protected java.lang.StringBuilder appendOwnerInformation(java.lang.StringBuilder sb, java.lang.String attr, java.lang.String defaultValue)
-
shortDisplay
protected java.lang.String shortDisplay()
-
toString
protected static java.lang.String toString(java.nio.file.attribute.FileTime time, boolean optFullTime)
-
readAttributes
protected static java.util.Map<java.lang.String,java.lang.Object> readAttributes(java.nio.file.Path path)
-
-