Package overit.geocall.sql
Class CacheBlob
java.lang.Object
overit.geocall.sql.CacheBlob
- All Implemented Interfaces:
Blob
Class that implements
Blob used for cache-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheBlob(byte[] bb) Constructor for CacheBlobCacheBlob(InputStream is) Constructor for CacheBlob -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()getBinaryStream(long pos, long length) byte[]getBytes(long pos, int length) longlength()longposition(byte[] pattern, long start) longsetBinaryStream(long pos) intsetBytes(long pos, byte[] bytes) intsetBytes(long pos, byte[] bytes, int offset, int len) voidtruncate(long len)
-
Field Details
-
_bc
-
-
Constructor Details
-
CacheBlob
Constructor for CacheBlob- Parameters:
bb- Array of byte for cache- Throws:
SQLException- if an error occurs while creating the cache
-
CacheBlob
Constructor for CacheBlob- Parameters:
is- The InputStream- Throws:
SQLException- if an error occurs while creating the cache
-
-
Method Details
-
getBytes
- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceBlob- Throws:
SQLException
-
truncate
- Specified by:
truncatein interfaceBlob- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
length
- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
free
public void free()
-