public interface IObjectReader
| Modifier and Type | Method and Description |
|---|---|
void |
close()
tidy up when snapshot no longer required
|
<A> A |
getAddon(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)
Get detailed information about a object array
|
Object |
readPrimitiveArrayContent(PrimitiveArrayImpl array,
int offset,
int length)
Get detailed information about a primitive array
|
void open(ISnapshot snapshot) throws SnapshotException, IOException
snapshot - SnapshotExceptionIOExceptionIObject read(int objectId, ISnapshot snapshot) throws SnapshotException, IOException
objectId - the object idsnapshot - the snapshotInstanceImpl, ObjectArrayImpl, PrimitiveArrayImpl, ClassLoaderImplSnapshotExceptionIOExceptionObject readPrimitiveArrayContent(PrimitiveArrayImpl array, int offset, int length) throws IOException, SnapshotException
array - the arrayoffset - where in the array to startlength - how much to readIOExceptionSnapshotExceptionlong[] readObjectArrayContent(ObjectArrayImpl array, int offset, int length) throws IOException, SnapshotException
array - offset - where in the array to startlength - how much to readIOExceptionSnapshotException<A> A getAddon(Class<A> addon) throws SnapshotException
addon - type of the additional informationSnapshotExceptionvoid close()
throws IOException
IOException