| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
OutputStreamorg.objectweb.jorm.mapper.rdb.lib.RdbBlobpublic class RdbBlobextends OutputStreamimplements BlobNested 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 IOExceptionThis constructor calculates the size of the serialized object.
public RdbBlob(Serializable serobj,
int buffersize)
throws IOExceptionThis 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 SQLExceptionpublic byte[] getBytes(long pos,
int length)
throws SQLExceptionpublic long length()
throws SQLExceptionpublic long position(Blob blob,
long l)
throws SQLExceptionpublic long position(byte[] bytes,
long l)
throws SQLExceptionprivate void println(String msg)
public OutputStream setBinaryStream(long pos)
throws SQLExceptionpublic int setBytes(long pos,
byte[] bytes)
throws SQLExceptionpublic int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws SQLExceptionpublic void truncate(long len)
throws SQLExceptionpublic void write(byte[] b)
throws IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOExceptionpublic void write(int b)
throws IOException