public abstract class RandomAccessStream extends java.lang.Object implements Seekable, java.io.DataInput, java.io.DataOutput
RandomAccessFile, except it may be backed by something other than a file.
RandomAccessFile| Constructor and Description |
|---|
RandomAccessStream() |
| Modifier and Type | Method and Description |
|---|---|
SeekableInputStream |
asInputStream()
Returns an input view of this
RandomAccessStream. |
SeekableOutputStream |
asOutputStream()
Returns an output view of this
RandomAccessStream. |
int |
read() |
int |
read(byte[] pBytes) |
int |
read(byte[] pBytes,
int pOffset,
int pLength) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flush, flushBefore, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, mark, reset, seekpublic int read()
throws java.io.IOException
java.io.IOExceptionpublic int read(byte[] pBytes,
int pOffset,
int pLength)
throws java.io.IOException
java.io.IOExceptionpublic final int read(byte[] pBytes)
throws java.io.IOException
java.io.IOExceptionpublic final SeekableInputStream asInputStream()
RandomAccessStream.
Invoking this method several times, will return the same object.
Note that read access is NOT synchronized.SeekableInputStream reading from this streampublic final SeekableOutputStream asOutputStream()
RandomAccessStream.
Invoking this method several times, will return the same object.
Note that write access is NOT synchronized.SeekableOutputStream writing to this streamCopyright © 2018. All Rights Reserved.