Class Classes.File.Reader

  • Enclosing class:
    Classes.File

    public static class Classes.File.Reader
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Reader()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String[] getInterfaceNames​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier, int header, int maxStringLength, java.lang.String[] constantUtf8Values, int[] cpInfoOffsets)  
      private static int readUnsignedShort​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier, int offset)  
      private static java.lang.String readUtf​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier, int constantPoolEntryIndex, char[] charBuffer, java.lang.String[] constantUtf8Values, int[] cpInfoOffsets)  
      private static java.lang.String readUtf​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier, int utfOffset, int utfLength, char[] charBuffer)  
      private static java.lang.String readUTF8​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier, int offset, char[] charBuffer, java.lang.String[] constantUtf8Values, int[] cpInfoOffsets)  
      static Classes.RawInfo retrieveInfo​(byte[] classFileBuffer)  
      private static Classes.RawInfo retrieveInfo​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier)  
      static Classes.RawInfo retrieveInfo​(java.nio.ByteBuffer classFileBuffer)  
      • Methods inherited from class java.lang.Object

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

      • Reader

        public Reader()
    • Method Detail

      • retrieveInfo

        public static Classes.RawInfo retrieveInfo​(byte[] classFileBuffer)
      • retrieveInfo

        public static Classes.RawInfo retrieveInfo​(java.nio.ByteBuffer classFileBuffer)
      • retrieveInfo

        private static Classes.RawInfo retrieveInfo​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier)
      • getInterfaceNames

        private static java.lang.String[] getInterfaceNames​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier,
                                                            int header,
                                                            int maxStringLength,
                                                            java.lang.String[] constantUtf8Values,
                                                            int[] cpInfoOffsets)
      • readUTF8

        private static java.lang.String readUTF8​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier,
                                                 int offset,
                                                 char[] charBuffer,
                                                 java.lang.String[] constantUtf8Values,
                                                 int[] cpInfoOffsets)
      • readUtf

        private static java.lang.String readUtf​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier,
                                                int constantPoolEntryIndex,
                                                char[] charBuffer,
                                                java.lang.String[] constantUtf8Values,
                                                int[] cpInfoOffsets)
      • readUnsignedShort

        private static int readUnsignedShort​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier,
                                             int offset)
      • readUtf

        private static java.lang.String readUtf​(Function<java.lang.Integer,​java.lang.Byte> byteSupplier,
                                                int utfOffset,
                                                int utfLength,
                                                char[] charBuffer)