Class PackExt


  • public class PackExt
    extends java.lang.Object
    A pack file extension.
    • Field Detail

      • PACK

        public static final PackExt PACK
        A pack file extension.
      • INDEX

        public static final PackExt INDEX
        A pack index file extension.
      • BITMAP_INDEX

        public static final PackExt BITMAP_INDEX
        A pack bitmap index file extension.
    • Method Detail

      • values

        public static PackExt[] values()
        Returns:
        all of the PackExt values.
      • newPackExt

        public static PackExt newPackExt​(java.lang.String ext)
        Returns a PackExt for the file extension and registers it in the values array.
        Parameters:
        ext - the file extension.
        Returns:
        the PackExt for the ext
      • getExtension

        public java.lang.String getExtension()
        Returns:
        the file extension.
      • getPosition

        public int getPosition()
        Returns:
        the position of the extension in the values array.
      • getBit

        public int getBit()
        Returns:
        the bit mask of the extension e.g 1 << getPosition().
      • toString

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