Class FileInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      FileInfo()  
      FileInfo​(@NotNull java.lang.String path, @NotNull java.lang.String name, boolean directory, boolean hidden, long creationTime, long lastModified, long lastAccess, long size)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCreationTime()  
      long getLastAccess()  
      long getLastModified()  
      @NotNull java.lang.String getName()  
      @NotNull java.lang.String getPath()  
      long getSize()  
      boolean isDirectory()  
      boolean isHidden()  
      static @NotNull FileInfo of​(@NotNull java.io.File file)  
      static @NotNull FileInfo of​(@NotNull java.nio.file.Path path)  
      static @NotNull FileInfo of​(@NotNull java.nio.file.Path fullPath, @NotNull java.nio.file.attribute.BasicFileAttributes attributes)  
      static @NotNull FileInfo of​(@NotNull java.nio.file.Path path, @Nullable java.nio.file.Path relativePath)  
      static @NotNull FileInfo of​(@NotNull java.nio.file.Path fullPath, @Nullable java.nio.file.Path relativePath, @NotNull java.nio.file.attribute.BasicFileAttributes attributes)  
      void read​(@NotNull ProtocolBuffer buffer)  
      void write​(@NotNull ProtocolBuffer buffer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileInfo

        public FileInfo​(@NotNull
                        @NotNull java.lang.String path,
                        @NotNull
                        @NotNull java.lang.String name,
                        boolean directory,
                        boolean hidden,
                        long creationTime,
                        long lastModified,
                        long lastAccess,
                        long size)
      • FileInfo

        public FileInfo()
    • Method Detail

      • of

        @NotNull
        public static @NotNull FileInfo of​(@NotNull
                                           @NotNull java.nio.file.Path path)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • of

        @NotNull
        public static @NotNull FileInfo of​(@NotNull
                                           @NotNull java.nio.file.Path fullPath,
                                           @NotNull
                                           @NotNull java.nio.file.attribute.BasicFileAttributes attributes)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • of

        @NotNull
        public static @NotNull FileInfo of​(@NotNull
                                           @NotNull java.nio.file.Path path,
                                           @Nullable
                                           @Nullable java.nio.file.Path relativePath)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • of

        @NotNull
        public static @NotNull FileInfo of​(@NotNull
                                           @NotNull java.nio.file.Path fullPath,
                                           @Nullable
                                           @Nullable java.nio.file.Path relativePath,
                                           @NotNull
                                           @NotNull java.nio.file.attribute.BasicFileAttributes attributes)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • of

        @NotNull
        public static @NotNull FileInfo of​(@NotNull
                                           @NotNull java.io.File file)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getPath

        @NotNull
        public @NotNull java.lang.String getPath()
      • getName

        @NotNull
        public @NotNull java.lang.String getName()
      • isDirectory

        public boolean isDirectory()
      • isHidden

        public boolean isHidden()
      • getCreationTime

        public long getCreationTime()
      • getLastModified

        public long getLastModified()
      • getLastAccess

        public long getLastAccess()
      • getSize

        public long getSize()