| java.lang.Object com.caucho.vfs.RandomAccessStream com.caucho.vfs.SpyRandomAccessStream
SpyRandomAccessStream | public class SpyRandomAccessStream extends RandomAccessStream (Code) | | Reads from a file in a random-access fashion.
|
Method Summary | |
public void | close() Closes the stream. | public long | getFilePointer() Returns the current position of the file pointer. | public InputStream | getInputStream() Returns an InputStream for this stream. | public long | getLength() Returns the length. | public OutputStream | getOutputStream() Returns an OutputStream for this stream. | public int | read(byte[] buffer, int offset, int length) Reads a block from a given location. | public int | read(char[] buffer, int offset, int length) Reads a block from a given location. | public int | read(long fileOffset, byte[] buffer, int offset, int length) Reads a block from a given location. | public int | read() Read a byte from the file, advancing the pointer. | public boolean | seek(long position) Seeks to the given position in the file. | public void | write(byte[] buffer, int offset, int length) | public void | write(long fileOffset, byte[] buffer, int offset, int length) Writes a block from a given location. | public void | write(int b) Write a byte to the file, advancing the pointer. |
getFilePointer | public long getFilePointer() throws IOException(Code) | | Returns the current position of the file pointer.
|
read | public int read(byte[] buffer, int offset, int length) throws IOException(Code) | | Reads a block from a given location.
|
read | public int read(char[] buffer, int offset, int length) throws IOException(Code) | | Reads a block from a given location.
|
read | public int read(long fileOffset, byte[] buffer, int offset, int length) throws IOException(Code) | | Reads a block from a given location.
|
read | public int read() throws IOException(Code) | | Read a byte from the file, advancing the pointer.
|
seek | public boolean seek(long position)(Code) | | Seeks to the given position in the file.
|
write | public void write(byte[] buffer, int offset, int length) throws IOException(Code) | | |
write | public void write(long fileOffset, byte[] buffer, int offset, int length) throws IOException(Code) | | Writes a block from a given location.
|
write | public void write(int b) throws IOException(Code) | | Write a byte to the file, advancing the pointer.
|
Methods inherited from com.caucho.vfs.RandomAccessStream | public void close() throws IOException(Code)(Java Doc) abstract public long getFilePointer() throws IOException(Code)(Java Doc) abstract public InputStream getInputStream() throws IOException(Code)(Java Doc) abstract public long getLength() throws IOException(Code)(Java Doc) abstract public OutputStream getOutputStream() throws IOException(Code)(Java Doc) public boolean lock(boolean shared, boolean block)(Code)(Java Doc) abstract public int read(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) abstract public int read(char[] buffer, int offset, int length) throws IOException(Code)(Java Doc) abstract public int read(long fileOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) abstract public int read() throws IOException(Code)(Java Doc) abstract public boolean seek(long position)(Code)(Java Doc) public boolean unlock()(Code)(Java Doc) abstract public void write(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) abstract public void write(long fileOffset, byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) abstract public void write(int b) throws IOException(Code)(Java Doc)
|
|
|