|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.hprof.HprofHeapObjectReader
public class HprofHeapObjectReader
| Field Summary | |
|---|---|
static java.lang.String |
VERSION_PROPERTY
|
| Constructor Summary | |
|---|---|
HprofHeapObjectReader()
|
|
| Method Summary | ||
|---|---|---|
void |
close()
tidy up when snapshot no longer required |
|
|
getAddon(java.lang.Class<A> addon)
Returns extra data to be provided by ISnapshot#getSnapshotAddons(Class addon). |
|
void |
open(ISnapshot snapshot)
Open the dump file associated with the snapshot |
|
IObject |
read(int objectId,
ISnapshot snapshot)
Get detailed information about an object |
|
long[] |
readObjectArrayContent(ObjectArrayImpl array,
int offset,
int length)
Get detailed information about a object array |
|
java.lang.Object |
readPrimitiveArrayContent(PrimitiveArrayImpl array,
int offset,
int length)
Get detailed information about a primitive array |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION_PROPERTY
| Constructor Detail |
|---|
public HprofHeapObjectReader()
| Method Detail |
|---|
public void open(ISnapshot snapshot)
throws java.io.IOException
IObjectReader
open in interface IObjectReaderjava.io.IOException
public long[] readObjectArrayContent(ObjectArrayImpl array,
int offset,
int length)
throws java.io.IOException,
SnapshotException
IObjectReader
readObjectArrayContent in interface IObjectReaderoffset - where in the array to startlength - how much to read
java.io.IOException
SnapshotException
public java.lang.Object readPrimitiveArrayContent(PrimitiveArrayImpl array,
int offset,
int length)
throws java.io.IOException,
SnapshotException
IObjectReader
readPrimitiveArrayContent in interface IObjectReaderarray - the arrayoffset - where in the array to startlength - how much to read
java.io.IOException
SnapshotException
public IObject read(int objectId,
ISnapshot snapshot)
throws SnapshotException,
java.io.IOException
IObjectReader
read in interface IObjectReaderobjectId - the object idsnapshot - the snapshot
InstanceImpl, ObjectArrayImpl, PrimitiveArrayImpl, ClassLoaderImpl
SnapshotException
java.io.IOException
public <A> A getAddon(java.lang.Class<A> addon)
throws SnapshotException
ISnapshot#getSnapshotAddons(Class addon).
Also can be returned via Argument.
getAddon in interface IObjectReaderaddon - the type of the extra data required from the dump.
HprofHeapObjectReader can be extended using an IRuntimeEnhancer extension
to return extra data.
SnapshotExceptionIObjectReader.getAddon(Class)
public void close()
throws java.io.IOException
IObjectReader
close in interface IObjectReaderjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||