public class DummyBlob
extends java.lang.Object
implements java.sql.Blob
Modifier and Type | Field and Description |
---|---|
private byte[] |
_bytes |
Constructor and Description |
---|
DummyBlob(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.InputStream |
getBinaryStream(long pos,
long length) |
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.Blob
public byte[] getBytes(long position, int length)
getBytes
in interface java.sql.Blob
public long length()
length
in interface java.sql.Blob
public long position(java.sql.Blob pattern, long start)
position
in interface java.sql.Blob
public long position(byte[] pattern, long start)
position
in interface java.sql.Blob
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int setBytes(long arg0, byte[] arg1) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public java.io.OutputStream setBinaryStream(long arg0) throws java.sql.SQLException
setBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public void truncate(long arg0) throws java.sql.SQLException
truncate
in interface java.sql.Blob
java.sql.SQLException
public void free() throws java.sql.SQLException
free
in interface java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.