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
- SnapshotException
IOException
IObject read(int objectId, ISnapshot snapshot) throws SnapshotException, IOException
objectId
- the object idsnapshot
- the snapshotInstanceImpl
, ObjectArrayImpl
, PrimitiveArrayImpl
, ClassLoaderImpl
SnapshotException
IOException
Object readPrimitiveArrayContent(PrimitiveArrayImpl array, int offset, int length) throws IOException, SnapshotException
array
- the arrayoffset
- where in the array to startlength
- how much to readIOException
SnapshotException
long[] readObjectArrayContent(ObjectArrayImpl array, int offset, int length) throws IOException, SnapshotException
array
- offset
- where in the array to startlength
- how much to readIOException
SnapshotException
<A> A getAddon(Class<A> addon) throws SnapshotException
addon
- type of the additional informationSnapshotException
void close() throws IOException
IOException