Class VirtualFilesystem


  • public class VirtualFilesystem
    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

      • database

        public final java.lang.String database
    • Method Detail

      • close

        public void close()
      • renameFile

        public boolean renameFile​(java.lang.String oldName,
                                  java.lang.String newName,
                                  boolean copy)
      • deleteFile

        public boolean deleteFile​(java.lang.String path)
      • fileExists

        public boolean fileExists​(java.lang.String path)
      • listFiles

        public java.util.List<java.lang.String> listFiles​(java.lang.String prefix)
      • deleteFiles

        public int deleteFiles​(java.lang.String prefix)
      • iterateFiles

        public int iterateFiles​(java.lang.String prefix,
                                boolean rw,
                                VFSIterator itr)
      • renameFiles

        public int renameFiles​(java.lang.String oldPrefix,
                               java.lang.String newPrefix,
                               boolean copy)
      • flushCache

        public void flushCache​(long age)
      • createIDBFactory

        protected static IDBFactory createIDBFactory()
      • utf8

        public static byte[] utf8​(java.lang.String str)
      • utf8

        public static java.lang.String utf8​(byte[] str)
      • CRLFtoLF

        public static java.lang.String CRLFtoLF​(java.lang.String str)
      • lines

        public static java.lang.String[] lines​(java.lang.String str)