|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.caucho.db.blob.InodeBlobInputStream
public class InodeBlobInputStream
Directly reading the blob from the inode.
Constructor Summary | |
---|---|
InodeBlobInputStream(BlockStore store,
byte[] inode,
int inodeOffset)
Creates a blob output stream. |
|
InodeBlobInputStream(Inode inode)
Creates a blob output stream. |
Method Summary | |
---|---|
void |
close()
Closes the buffer. |
void |
init(BlockStore store,
byte[] inode,
int inodeOffset)
Initialize the output stream. |
int |
read()
Reads a byte. |
int |
read(byte[] buf,
int offset,
int length)
Reads a buffer. |
void |
readBlock()
Updates the buffer. |
static long |
readLong(byte[] buffer,
int offset)
Writes the long. |
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InodeBlobInputStream(BlockStore store, byte[] inode, int inodeOffset)
store
- the output storepublic InodeBlobInputStream(Inode inode)
store
- the output storeMethod Detail |
---|
public void init(BlockStore store, byte[] inode, int inodeOffset)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buf, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in class java.io.InputStream
public void readBlock() throws java.io.IOException
java.io.IOException
public static long readLong(byte[] buffer, int offset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |