public static final class JDBCDriverTest.MyBlob
extends java.lang.Object
implements java.sql.Blob
A crude Blob implementation for datatype testing.
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
_bytes |
| Constructor and Description |
|---|
MyBlob(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.io.InputStream |
getBinaryStream() |
byte[] |
getBytes(long position,
int length) |
long |
length() |
long |
position(java.sql.Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
java.io.OutputStream |
setBinaryStream(long arg0) |
int |
setBytes(long arg0,
byte[] arg1) |
int |
setBytes(long arg0,
byte[] arg1,
int arg2,
int arg3) |
void |
truncate(long arg0) |
public java.io.InputStream getBinaryStream()
getBinaryStream in interface java.sql.Blobpublic byte[] getBytes(long position,
int length)
getBytes in interface java.sql.Blobpublic long length()
length in interface java.sql.Blobpublic long position(java.sql.Blob pattern,
long start)
position in interface java.sql.Blobpublic long position(byte[] pattern,
long start)
position in interface java.sql.Blobpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int setBytes(long arg0,
byte[] arg1)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long arg0,
byte[] arg1,
int arg2,
int arg3)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream(long arg0)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic void truncate(long arg0)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.