com.caucho.env.hprof
Class HprofParser

java.lang.Object
  extended by com.caucho.env.hprof.HprofParser

public class HprofParser
extends java.lang.Object

Parses the JDK's .hprof file.


Nested Class Summary
static class HprofParser.DumpType
           
static class HprofParser.FieldType
           
static class HprofParser.TagType
           
 
Constructor Summary
HprofParser(Path path)
           
 
Method Summary
 int basicSize(int type)
           
 void close()
           
 long getTagTime()
           
 void readDump(HprofDumpHandler handler)
           
 void readLoadClass(HprofDumpHandler handler)
           
 java.lang.String readString(int length)
           
 void readStringInUtf8(HprofDumpHandler handler)
           
 HprofParser.TagType readTagStart()
           
 void skipToTagEnd()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HprofParser

public HprofParser(Path path)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readTagStart

public HprofParser.TagType readTagStart()
                                 throws java.io.IOException
Throws:
java.io.IOException

getTagTime

public long getTagTime()

skipToTagEnd

public void skipToTagEnd()
                  throws java.io.IOException
Throws:
java.io.IOException

readStringInUtf8

public void readStringInUtf8(HprofDumpHandler handler)
                      throws java.io.IOException
Throws:
java.io.IOException

readString

public java.lang.String readString(int length)
                            throws java.io.IOException
Throws:
java.io.IOException

readLoadClass

public void readLoadClass(HprofDumpHandler handler)
                   throws java.io.IOException
Throws:
java.io.IOException

readDump

public void readDump(HprofDumpHandler handler)
              throws java.io.IOException
Throws:
java.io.IOException

basicSize

public int basicSize(int type)

close

public void close()

toString

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