|
||||||||||
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.BlobInputStream
public class BlobInputStream
Constructor Summary | |
---|---|
BlobInputStream(BlockStore store,
byte[] inode,
int inodeOffset)
Creates a blob output stream. |
|
BlobInputStream(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. |
static long |
readLong(byte[] buffer,
int offset)
Writes the long. |
int |
readToOutput(java.io.OutputStream os)
|
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 BlobInputStream(BlockStore store, byte[] inode, int inodeOffset)
store
- the output storepublic BlobInputStream(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 int readToOutput(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in class java.io.InputStream
public static long readLong(byte[] buffer, int offset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |