Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
OutputStream
org.objectweb.jorm.mapper.rdb.lib.RdbBlob
public class RdbBlob
extends OutputStream
implements Blob
Nested Class Summary | |
(package private) class |
Field Summary | |
static int | |
protected ArrayList |
|
protected int |
|
private byte[] |
|
private int |
|
protected int |
|
Constructor Summary | |
| |
|
Method Summary | |
private void |
|
void |
|
void |
|
InputStream | |
byte[] |
|
long |
|
long |
|
long |
|
private void |
|
OutputStream |
|
int |
|
int |
|
void |
|
void |
|
void |
|
void |
|
public static final int DEFAULT_BUFFER_SIZE
- Field Value:
- 1024
protected ArrayList bufferList
This arrayList contains buffers. A buffer is a byte[] which the size is bufferSize.
protected int bufferSize
The size of the buffer stored in the buffer list
private byte[] currentBuffer
The current buffer.
private int currentPos
The current position in the last buffer
protected int size
The total length
public RdbBlob(Serializable serobj) throws IOException
This constructor calculates the size of the serialized object.
public RdbBlob(Serializable serobj, int buffersize) throws IOException
This constructor calculates the size of the serialized object.
private void bprintln(String msg1, byte b, String msg2)
public void close()
do nothing
public void flush()
do nothing
public InputStream getBinaryStream() throws SQLException
public byte[] getBytes(long pos, int length) throws SQLException
public long length() throws SQLException
public long position(Blob blob, long l) throws SQLException
public long position(byte[] bytes, long l) throws SQLException
private void println(String msg)
public OutputStream setBinaryStream(long pos) throws SQLException
public int setBytes(long pos, byte[] bytes) throws SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
public void truncate(long len) throws SQLException
public void write(byte[] b) throws IOException
public void write(byte[] b, int off, int len) throws IOException
public void write(int b) throws IOException