|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--org.objectweb.jorm.mapper.rdb.lib.RdbBlob
| Field Summary | |
protected java.util.ArrayList |
bufferList
This arrayList contains buffers. |
protected int |
bufferSize
The size of the buffer stored in the buffer list |
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 | |
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)
|
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
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.Blobjava.sql.SQLException
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLException
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLException
public long position(byte[] bytes,
long l)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException
public long position(java.sql.Blob blob,
long l)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLException
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException
public void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionpublic void close()
close in class java.io.OutputStreampublic void flush()
flush in class java.io.OutputStream
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||