Class BinaryHprofReader


  • public final class BinaryHprofReader
    extends Object
       
     BinaryHprofReader reader = new BinaryHprofReader(new BufferedInputStream(inputStream));
     reader.setStrict(false); // for RI compatability
     reader.read();
     inputStream.close();
     reader.getVersion();
     reader.getHprofData();
     
    • Constructor Detail

      • BinaryHprofReader

        public BinaryHprofReader​(InputStream inputStream)
                          throws IOException
        Creates a BinaryHprofReader around the specified inputStream
        Throws:
        IOException
    • Method Detail

      • getStrict

        public boolean getStrict()
      • setStrict

        public void setStrict​(boolean strict)
      • getVersion

        public String getVersion()
      • getHprofData

        public HprofData getHprofData()
      • read

        public void read()
                  throws IOException
        Read the hprof header and records from the input
        Throws:
        IOException