|
ModeShape Distribution 3.0.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jdbc.JcrBlob
public class JcrBlob
The JDBC Blob wrapper around a JCR binary Value object.
| Constructor Summary | |
|---|---|
protected |
JcrBlob(Value value,
long length)
Create a JDBC Blob object around the supplied JCR Value, specifying the length. |
| Method Summary | |
|---|---|
void |
free()
|
InputStream |
getBinaryStream()
|
InputStream |
getBinaryStream(long pos,
long length)
|
byte[] |
getBytes(long pos,
int length)
|
long |
length()
|
long |
position(Blob pattern,
long start)
|
long |
position(byte[] pattern,
long start)
|
OutputStream |
setBinaryStream(long pos)
|
int |
setBytes(long pos,
byte[] bytes)
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
|
void |
truncate(long len)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JcrBlob(Value value,
long length)
Property via Property.getLength() or Property.getLengths().
value - the JCR value; may not be nulllength - the length| Method Detail |
|---|
public void free()
throws SQLException
free in interface BlobSQLExceptionBlob.free()
public InputStream getBinaryStream()
throws SQLException
getBinaryStream in interface BlobSQLExceptionBlob.getBinaryStream()
public InputStream getBinaryStream(long pos,
long length)
throws SQLException
getBinaryStream in interface BlobSQLExceptionBlob.getBinaryStream(long, long)
public byte[] getBytes(long pos,
int length)
throws SQLException
getBytes in interface BlobSQLExceptionBlob.getBytes(long, int)public long length()
length in interface BlobBlob.length()
public long position(byte[] pattern,
long start)
throws SQLException
position in interface BlobSQLExceptionBlob.position(byte[], long)
public long position(Blob pattern,
long start)
throws SQLException
position in interface BlobSQLExceptionBlob.position(java.sql.Blob, long)
public OutputStream setBinaryStream(long pos)
throws SQLException
setBinaryStream in interface BlobSQLExceptionBlob.setBinaryStream(long)
public int setBytes(long pos,
byte[] bytes)
throws SQLException
setBytes in interface BlobSQLExceptionBlob.setBytes(long, byte[])
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws SQLException
setBytes in interface BlobSQLExceptionBlob.setBytes(long, byte[], int, int)
public void truncate(long len)
throws SQLException
truncate in interface BlobSQLExceptionBlob.truncate(long)
|
ModeShape Distribution 3.0.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||