public class DTFJHeapObjectReader extends Object implements IObjectReader
Constructor and Description |
---|
DTFJHeapObjectReader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
tidy up when snapshot no longer required
|
<A> A |
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
|
public void close() throws IOException
IObjectReader
close
in interface IObjectReader
IOException
public <A> A getAddon(Class<A> addon) throws SnapshotException
ISnapshot.getSnapshotAddons(Class addon)
.
Also can be returned via Argument
.getAddon
in interface IObjectReader
addon
- the type of the extra data required from the dump
Types supported by DTFJHeapObjectReader include
Image
ImageAddressSpace
ImageProcess
JavaRuntime
ImageFactory
since 1.1SnapshotException
IObjectReader.getAddon(Class)
public void open(ISnapshot snapshot) throws IOException, SnapshotException
IObjectReader
open
in interface IObjectReader
IOException
SnapshotException
public IObject read(int objectId, ISnapshot snapshot) throws SnapshotException, IOException
IObjectReader
read
in interface IObjectReader
objectId
- the object idsnapshot
- the snapshotInstanceImpl
, ObjectArrayImpl
, PrimitiveArrayImpl
, ClassLoaderImpl
SnapshotException
IOException
public Object readPrimitiveArrayContent(PrimitiveArrayImpl array, int offset, int length) throws IOException, SnapshotException
readPrimitiveArrayContent
in interface IObjectReader
array
- The MAT array to be readoffset
- the offset into the arraylength
- the number of items to be readIOException
SnapshotException
public long[] readObjectArrayContent(ObjectArrayImpl array, int offset, int length) throws IOException, SnapshotException
readObjectArrayContent
in interface IObjectReader
array
- The MAT array to be readoffset
- the offset into the arraylength
- the number of items to be readIOException
SnapshotException