|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.jikesrvm.util.AddressInputStream
public final class AddressInputStream
Access raw memory region as an input stream.
Field Summary | |
---|---|
private Offset |
length
Length of the memory region |
private Address |
location
Address of memory region to be read |
private Offset |
markOffset
Mark offset |
private Offset |
offset
Offset to be read |
Constructor Summary | |
---|---|
AddressInputStream(Address location,
Offset length)
Constructor |
Method Summary | |
---|---|
int |
available()
|
void |
mark(int readLimit)
Mark location |
boolean |
markSupported()
Is mark/reset supported |
int |
read()
Read a byte |
void |
reset()
Reset to mark |
long |
skip(long n)
Skip bytes |
Methods inherited from class java.io.InputStream |
---|
close, read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Address location
private final Offset length
private Offset offset
private Offset markOffset
Constructor Detail |
---|
public AddressInputStream(Address location, Offset length)
Method Detail |
---|
public int available()
available
in class InputStream
public void mark(int readLimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public void reset()
reset
in class InputStream
public long skip(long n)
skip
in class InputStream
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |