|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.objectweb.jorm.mapper.rdb.lib.RdbBlob
Nested Class Summary | |
(package private) class |
RdbBlob.RdbInputStream
|
Field Summary | |
protected java.util.ArrayList |
bufferList
This arrayList contains buffers. |
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 |
static int |
DEFAULT_BUFFER_SIZE
|
protected int |
size
The total length |
Constructor Summary | |
RdbBlob(java.io.Serializable serobj)
This constructor calculates the size of the serialized object. |
|
RdbBlob(java.io.Serializable serobj,
int buffersize)
This constructor calculates the size of the serialized object. |
Method Summary | |
private void |
bprintln(java.lang.String msg1,
byte b,
java.lang.String msg2)
|
void |
close()
do nothing |
void |
flush()
do nothing |
java.io.InputStream |
getBinaryStream()
|
byte[] |
getBytes(long pos,
int length)
|
long |
length()
|
long |
position(java.sql.Blob blob,
long l)
|
long |
position(byte[] bytes,
long l)
|
private void |
println(java.lang.String msg)
|
java.io.OutputStream |
setBinaryStream(long pos)
|
int |
setBytes(long pos,
byte[] bytes)
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
|
void |
truncate(long len)
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_BUFFER_SIZE
protected int bufferSize
protected java.util.ArrayList bufferList
private byte[] currentBuffer
private int currentPos
protected int size
Constructor Detail |
public RdbBlob(java.io.Serializable serobj) throws java.io.IOException
public RdbBlob(java.io.Serializable serobj, int buffersize) throws java.io.IOException
Method Detail |
public long length() throws java.sql.SQLException
length
in interface java.sql.Blob
java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
in interface java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public long position(byte[] bytes, long l) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public long position(java.sql.Blob blob, long l) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos) throws java.sql.SQLException
setBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Blob
java.sql.SQLException
public void close()
public void flush()
public void write(byte[] b) throws java.io.IOException
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
java.io.IOException
private void println(java.lang.String msg)
private void bprintln(java.lang.String msg1, byte b, java.lang.String msg2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |