Module openj9.dtfj

Class AbstractCoreReader

    • Constructor Detail

      • AbstractCoreReader

        protected AbstractCoreReader()
    • Method Detail

      • setReader

        public void setReader​(ImageInputStream reader)
                       throws IOException
        This sets the reader to use to retrieve the underlying bytes to process. The reader may perform buffering or other operations before making the data available. Subclasses should override this method if additional actions need to be performed when the reader is set, typically this will be things such as an initial read of the data.
        Parameters:
        reader -
        Throws:
        IOException
      • readFully

        public void readFully​(byte[] buffer,
                              int offset,
                              int length)
                       throws IOException
        Throws:
        IOException
      • format

        public static String format​(int i)
      • format

        public static String format​(long l)
      • readLong

        protected static long readLong​(byte[] data,
                                       int start)
      • readInt

        protected static int readInt​(byte[] data,
                                     int start)