Class VirtualFilesystem.VFSFile

  • Enclosing class:
    VirtualFilesystem

    public static class VirtualFilesystem.VFSFile
    extends java.lang.Object
    • Field Detail

      • cacheEnabled

        protected boolean cacheEnabled
      • filePath

        protected java.lang.String filePath
      • fileSize

        protected int fileSize
      • hasBeenDeleted

        protected boolean hasBeenDeleted
      • hasBeenAccessed

        protected boolean hasBeenAccessed
      • exists

        protected boolean exists
      • cache

        protected byte[] cache
      • cacheHit

        protected long cacheHit
    • Constructor Detail

      • VFSFile

        protected VFSFile​(VirtualFilesystem vfs,
                          java.lang.String filePath,
                          boolean cacheEnabled)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getPath

        public java.lang.String getPath()
      • getSize

        public int getSize()
      • getInputStream

        public java.io.InputStream getInputStream()
      • getOutputStream

        public java.io.OutputStream getOutputStream()
      • getBytes

        public void getBytes​(int fileOffset,
                             byte[] array,
                             int offset,
                             int length)
      • setCacheEnabled

        public void setCacheEnabled()
      • getAllBytes

        public byte[] getAllBytes()
      • getAllChars

        public java.lang.String getAllChars()
      • getAllLines

        public java.lang.String[] getAllLines()
      • getAllBytes

        public byte[] getAllBytes​(boolean copy)
      • setAllChars

        public boolean setAllChars​(java.lang.String bytes)
      • setAllBytes

        public boolean setAllBytes​(byte[] bytes)
      • setAllBytes

        public boolean setAllBytes​(byte[] bytes,
                                   boolean copy)
      • sync

        public boolean sync()
      • delete

        public boolean delete()
      • rename

        public boolean rename​(java.lang.String newName,
                              boolean copy)
      • exists

        public boolean exists()