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
IObjectReaderclose in interface IObjectReaderIOExceptionpublic <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
SnapshotExceptionIObjectReader.getAddon(Class)public void open(ISnapshot snapshot) throws IOException, SnapshotException
IObjectReaderopen in interface IObjectReaderIOExceptionSnapshotExceptionpublic IObject read(int objectId, ISnapshot snapshot) throws SnapshotException, IOException
IObjectReaderread in interface IObjectReaderobjectId - the object idsnapshot - the snapshotInstanceImpl, ObjectArrayImpl, PrimitiveArrayImpl, ClassLoaderImplSnapshotExceptionIOExceptionpublic 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 readIOExceptionSnapshotExceptionpublic 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 readIOExceptionSnapshotException