|
||||||||||
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 lengthMethod Detail |
---|
public void free() throws SQLException
free
in interface Blob
SQLException
Blob.free()
public InputStream getBinaryStream() throws SQLException
getBinaryStream
in interface Blob
SQLException
Blob.getBinaryStream()
public InputStream getBinaryStream(long pos, long length) throws SQLException
getBinaryStream
in interface Blob
SQLException
Blob.getBinaryStream(long, long)
public byte[] getBytes(long pos, int length) throws SQLException
getBytes
in interface Blob
SQLException
Blob.getBytes(long, int)
public long length()
length
in interface Blob
Blob.length()
public long position(byte[] pattern, long start) throws SQLException
position
in interface Blob
SQLException
Blob.position(byte[], long)
public long position(Blob pattern, long start) throws SQLException
position
in interface Blob
SQLException
Blob.position(java.sql.Blob, long)
public OutputStream setBinaryStream(long pos) throws SQLException
setBinaryStream
in interface Blob
SQLException
Blob.setBinaryStream(long)
public int setBytes(long pos, byte[] bytes) throws SQLException
setBytes
in interface Blob
SQLException
Blob.setBytes(long, byte[])
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
setBytes
in interface Blob
SQLException
Blob.setBytes(long, byte[], int, int)
public void truncate(long len) throws SQLException
truncate
in interface Blob
SQLException
Blob.truncate(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |