private class GridFSDBFile.GridFSInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
buffer |
private int |
currentChunkId |
private int |
numberOfChunks |
private int |
offset |
Constructor and Description |
---|
GridFSInputStream() |
Modifier and Type | Method and Description |
---|---|
int |
available() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long bytesToSkip)
Will smartly skip over chunks without fetching them if possible.
|
private final int numberOfChunks
private int currentChunkId
private int offset
private byte[] buffer
public int available()
available
in class java.io.InputStream
public int read()
read
in class java.io.InputStream
public int read(byte[] b)
read
in class java.io.InputStream
public int read(byte[] b, int off, int len)
read
in class java.io.InputStream
public long skip(long bytesToSkip) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException