Package com.nuodb.jdbc
Class Blob
- java.lang.Object
-
- com.nuodb.jdbc.Blob
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfree()InputStreamgetBinaryStream()InputStreamgetBinaryStream(long pos, long length)byte[]getBytes()byte[]getBytes(long pos, int length)booleanhasData()inthashCode()longlength()longposition(byte[] pattern, long start)longposition(Blob pattern, long start)OutputStreamsetBinaryStream(long position)intsetBytes(long pos, byte[] bytes)intsetBytes(long pos, byte[] bytes, int offset, int len)voidtruncate(long length)
-
-
-
Constructor Detail
-
Blob
public Blob()
-
Blob
public Blob(byte[] bytes)
-
Blob
public Blob(Blob blob) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
hasData
public boolean hasData()
-
length
public long length() throws SQLException- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
getBytes
public byte[] getBytes()
-
getBytes
public byte[] getBytes(long pos, int length) throws SQLException- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream() throws SQLException
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
position
public long position(byte[] pattern, long start) throws SQLException- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
position
public long position(Blob pattern, long start) throws SQLException
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
free
public void free() throws SQLException- Specified by:
freein interfaceBlob- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(long pos, long length) throws SQLException
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
setBinaryStream
public OutputStream setBinaryStream(long position) throws SQLException
- Specified by:
setBinaryStreamin interfaceBlob- Throws:
SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes) throws SQLException- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
truncate
public void truncate(long length) throws SQLException- Specified by:
truncatein interfaceBlob- Throws:
SQLException
-
-