com.imagero.uio.blob
Class Blob.BaBlob

java.lang.Object
  extended bycom.imagero.uio.blob.Blob
      extended bycom.imagero.uio.blob.Blob.BaBlob
Enclosing class:
Blob

public static class Blob.BaBlob
extends Blob


Nested Class Summary
 
Nested classes inherited from class com.imagero.uio.blob.Blob
Blob.BaBlob, Blob.IaBlob, Blob.RoBlob
 
Constructor Summary
Blob.BaBlob(byte[] blob)
           
Blob.BaBlob(byte[] blob, int offset, int length)
           
 
Method Summary
 void clear()
          release reloadable resources
protected  long computeLength()
           
 int get(long start, byte[] dest)
          retrieve data from this Blob
 byte[] get(long start, int length)
          retrieve data from this Blob
 void set(long start, byte[] data)
          set data (work only if writable returns true)
 boolean writable()
          determine if this Blob is writable and method set(long, byte[]) can be used to change content of this Blob
 
Methods inherited from class com.imagero.uio.blob.Blob
getInputStream, getLength, getProperty, lengthKnown, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blob.BaBlob

public Blob.BaBlob(byte[] blob)

Blob.BaBlob

public Blob.BaBlob(byte[] blob,
                   int offset,
                   int length)
Method Detail

computeLength

protected long computeLength()
Specified by:
computeLength in class Blob

get

public byte[] get(long start,
                  int length)
Description copied from class: Blob
retrieve data from this Blob

Specified by:
get in class Blob
Parameters:
start - start offset
length - how much bytes to get
Returns:
byte array with data

get

public int get(long start,
               byte[] dest)
Description copied from class: Blob
retrieve data from this Blob

Specified by:
get in class Blob
Parameters:
start - start offset
dest - where to copy data
Returns:
how much byte were copied

writable

public boolean writable()
Description copied from class: Blob
determine if this Blob is writable and method set(long, byte[]) can be used to change content of this Blob

Specified by:
writable in class Blob
Returns:
true if Blob is writable

set

public void set(long start,
                byte[] data)
Description copied from class: Blob
set data (work only if writable returns true)

Specified by:
set in class Blob
Parameters:
start - start in destination
data - new data

clear

public void clear()
Description copied from class: Blob
release reloadable resources

Specified by:
clear in class Blob