OleBlob.Builder, OleBlob.CompoundContent, OleBlob.Content, OleBlob.ContentType, OleBlob.EmbeddedContent, OleBlob.LinkContent, OleBlob.OtherContent, OleBlob.PackageContent, OleBlob.SimplePackageContent| Modifier and Type | Field and Description |
|---|---|
private byte[] |
_bytes |
private OleUtil.ContentImpl |
_content |
| Modifier | Constructor and Description |
|---|---|
private |
OleBlobImpl(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
free() |
private static int |
fromJdbcOffset(long off) |
java.io.InputStream |
getBinaryStream() |
java.io.InputStream |
getBinaryStream(long pos,
long len) |
byte[] |
getBytes() |
byte[] |
getBytes(long pos,
int len) |
OleBlob.Content |
getContent()
Returns the decoded form of the blob contents, if understandable.
|
long |
length() |
long |
position(java.sql.Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
java.io.OutputStream |
setBinaryStream(long position) |
int |
setBytes(long pos,
byte[] bytes) |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int lesn) |
private static int |
toJdbcOffset(int off) |
java.lang.String |
toString() |
void |
truncate(long len) |
void |
writeTo(java.io.OutputStream out)
Writes the entire raw blob data to the given stream (this is the access
db internal format, which includes all wrapper information).
|
private byte[] _bytes
private OleUtil.ContentImpl _content
public void writeTo(java.io.OutputStream out)
throws java.io.IOException
OleBlobpublic OleBlob.Content getContent() throws java.io.IOException
OleBlobgetContent in interface OleBlobjava.io.IOExceptionpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(long pos,
long len)
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes()
throws java.io.IOException
java.io.IOExceptionpublic byte[] getBytes(long pos,
int len)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream(long position)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long pos,
byte[] bytes,
int offset,
int lesn)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic void free()
free in interface java.sql.Blobpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableprivate static int toJdbcOffset(int off)
private static int fromJdbcOffset(long off)
public java.lang.String toString()
toString in class java.lang.Object