|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.dtfj.DTFJHeapObjectReader
public class DTFJHeapObjectReader
Reads details of an object from a DTFJ dump.
| Constructor Summary | |
|---|---|
DTFJHeapObjectReader()
|
|
| Method Summary | ||
|---|---|---|
void |
close()
tidy up when snapshot no longer required |
|
|
getAddon(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)
Read some of the contents of an array |
|
Object |
readPrimitiveArrayContent(PrimitiveArrayImpl array,
int offset,
int length)
Read some of the contents of an array |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTFJHeapObjectReader()
| Method Detail |
|---|
public void close()
throws IOException
IObjectReader
close in interface IObjectReaderIOException
public <A> A getAddon(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
Types supported by DTFJHeapObjectReader include
com.ibm.dtfj.image.Imagecom.ibm.dtfj.image.ImageAddressSpacecom.ibm.dtfj.image.ImageProcesscom.ibm.dtfj.java.JavaRuntimecom.ibm.dtfj.image.ImageFactory since 1.1SnapshotExceptionIObjectReader.getAddon(Class)
public void open(ISnapshot snapshot)
throws IOException,
SnapshotException
IObjectReader
open in interface IObjectReaderIOException
SnapshotException
public IObject read(int objectId,
ISnapshot snapshot)
throws SnapshotException,
IOException
IObjectReader
read in interface IObjectReaderobjectId - the object idsnapshot - the snapshot
InstanceImpl, ObjectArrayImpl, PrimitiveArrayImpl, ClassLoaderImpl
SnapshotException
IOException
public Object readPrimitiveArrayContent(PrimitiveArrayImpl array,
int offset,
int length)
throws IOException,
SnapshotException
readPrimitiveArrayContent in interface IObjectReaderarray - The MAT array to be readoffset - the offset into the arraylength - the number of items to be read
IOException
SnapshotException
public long[] readObjectArrayContent(ObjectArrayImpl array,
int offset,
int length)
throws IOException,
SnapshotException
readObjectArrayContent in interface IObjectReaderarray - The MAT array to be readoffset - the offset into the arraylength - the number of items to be read
IOException
SnapshotException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||