com.sun.jimi.util
Class MemoryRandomAccessStorage
java.lang.Object
|
+--com.sun.jimi.util.MemoryRandomAccessStorage
- public class MemoryRandomAccessStorage
- extends java.lang.Object
- implements RandomAccessStorage
In-memory implementation of RandomAccessStorage.
Field Summary |
protected java.io.InputStream |
in
|
protected java.io.OutputStream |
out
|
protected int |
position
|
protected byte[] |
storage
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
storage
protected byte[] storage
position
protected int position
out
protected java.io.OutputStream out
in
protected java.io.InputStream in
MemoryRandomAccessStorage
public MemoryRandomAccessStorage(int storageSize)
seek
public void seek(long pos)
- Specified by:
- seek in interface RandomAccessStorage
skip
public void skip(int bytes)
- Specified by:
- skip in interface RandomAccessStorage
asOutputStream
public java.io.OutputStream asOutputStream()
- Specified by:
- asOutputStream in interface RandomAccessStorage
asInputStream
public java.io.InputStream asInputStream()
- Specified by:
- asInputStream in interface RandomAccessStorage