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.Reader
java.io.IOException
public int read(char[] buf, int offset, int length) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
public static long readLong(byte[] buffer, int offset)