Class ScpShell.PathEntry

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
    • Constructor Detail

      • PathEntry

        public PathEntry​(java.nio.file.Path abs,
                         java.nio.file.Path root)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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)