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.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 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.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)
-
-
-
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:
compareTo
in interfacejava.lang.Comparable<ScpShell.PathEntry>
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-