Class VFile

  • Direct Known Subclasses:
    VIteratorFile

    public class VFile
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • altPathSeperator

        public static final java.lang.String[] altPathSeperator
      • path

        protected java.lang.String path
    • Constructor Detail

      • VFile

        public VFile​(java.lang.Object... p)
    • Method Detail

      • normalizePath

        public static java.lang.String normalizePath​(java.lang.String p)
      • splitPath

        public static java.lang.String[] splitPath​(java.lang.String p)
      • createPath

        public static java.lang.String createPath​(java.lang.Object... p)
      • getInputStream

        public java.io.InputStream getInputStream()
      • getOutputStream

        public java.io.OutputStream getOutputStream()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isRelative

        public boolean isRelative()
      • canRead

        public boolean canRead()
      • getPath

        public java.lang.String getPath()
      • getName

        public java.lang.String getName()
      • canWrite

        public boolean canWrite()
      • getParent

        public java.lang.String getParent()
      • hashCode

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

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

        public boolean exists()
      • delete

        public boolean delete()
      • renameTo

        public boolean renameTo​(java.lang.String p,
                                boolean copy)
      • length

        public int length()
      • 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)
      • list

        public java.util.List<java.lang.String> list()
      • deleteAll

        public int deleteAll()