|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.randomaccess.AbstractRandomAccess
public abstract class AbstractRandomAccess
Supports reading and writing to a random access data container. A random access data container behaves like a large array of bytes.
Constructor Summary | |
---|---|
AbstractRandomAccess()
|
Method Summary | |
---|---|
java.io.InputStream |
asInputStream()
A InputStream view on the data structure. |
java.io.OutputStream |
asOutputStream()
A OutputStream view on the data structure. |
protected java.util.Stack |
getPositionStack()
|
void |
mark()
Mark the current offset into the data in a stack like manner. |
void |
reset()
Reset to the last position on the mark-stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.intarsys.tools.randomaccess.IRandomAccess |
---|
close, flush, getLength, getOffset, isReadOnly, read, read, read, seek, seekBy, setLength, write, write, write |
Constructor Detail |
---|
public AbstractRandomAccess()
Method Detail |
---|
public java.io.InputStream asInputStream()
IRandomAccess
InputStream
view on the data structure.
asInputStream
in interface IRandomAccess
InputStream
view on the data structure.public java.io.OutputStream asOutputStream()
IRandomAccess
OutputStream
view on the data structure.
asOutputStream
in interface IRandomAccess
OutputStream
view on the data structure.public void mark() throws java.io.IOException
IRandomAccess
mark
in interface IRandomAccess
java.io.IOException
public void reset() throws java.io.IOException
IRandomAccess
reset
in interface IRandomAccess
java.io.IOException
protected java.util.Stack getPositionStack()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |