|
||||||||||
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(java.lang.Class<A> addon)
Get additional information about the snapshot |
|
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 |
|
java.lang.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 java.io.IOException
IObjectReader
close
in interface IObjectReader
java.io.IOException
public <A> A getAddon(java.lang.Class<A> addon) throws SnapshotException
IObjectReader
getAddon
in interface IObjectReader
addon
- type of the additional information
SnapshotException
public void open(ISnapshot snapshot) throws java.io.IOException
IObjectReader
open
in interface IObjectReader
java.io.IOException
public IObject read(int objectId, ISnapshot snapshot) throws SnapshotException, java.io.IOException
IObjectReader
read
in interface IObjectReader
objectId
- the object idsnapshot
- the snapshot
InstanceImpl
, ObjectArrayImpl
, PrimitiveArrayImpl
, ClassLoaderImpl
SnapshotException
java.io.IOException
public java.lang.Object readPrimitiveArrayContent(PrimitiveArrayImpl array, int offset, int length) throws java.io.IOException, SnapshotException
readPrimitiveArrayContent
in interface IObjectReader
array
- The MAT array to be readoffset
- the offset into the arraylength
- the number of items to be read
java.io.IOException
SnapshotException
public long[] readObjectArrayContent(ObjectArrayImpl array, int offset, int length) throws java.io.IOException, SnapshotException
readObjectArrayContent
in interface IObjectReader
array
- The MAT array to be readoffset
- the offset into the arraylength
- the number of items to be read
java.io.IOException
SnapshotException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |