public class ClobReader
extends java.io.Reader
| Constructor and Description |
|---|
ClobReader(BlockStore store,
byte[] inode,
int inodeOffset)
Creates a clob reader.
|
ClobReader(Inode inode)
Creates a clob reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the buffer.
|
void |
init(BlockStore store,
byte[] inode,
int inodeOffset)
Initialize the output stream.
|
int |
read()
Reads a char.
|
int |
read(char[] buf,
int offset,
int length)
Reads a buffer.
|
static long |
readLong(byte[] buffer,
int offset)
Writes the long.
|
public ClobReader(BlockStore store, byte[] inode, int inodeOffset)
store - the backing storepublic ClobReader(Inode inode)
store - the backing storepublic void init(BlockStore store, byte[] inode, int inodeOffset)
public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] buf,
int offset,
int length)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerpublic static long readLong(byte[] buffer,
int offset)