com.imagero.uio.blob
Class Blob.IaBlob

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

public static class Blob.IaBlob
extends Blob


Nested Class Summary
 
Nested classes inherited from class com.imagero.uio.blob.Blob
Blob.BaBlob, Blob.IaBlob, Blob.RoBlob
 
Constructor Summary
Blob.IaBlob(int[] blob)
           
Blob.IaBlob(int[] blob, int offset, int length)
           
Blob.IaBlob(int[] blob, int offset, int length, int mask)
           
Blob.IaBlob(int[] blob, int offset, int length, int[] shifts)
           
Blob.IaBlob(int[] blob, int offset, int length, int mask, int[] shifts)
           
 
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
 java.io.InputStream getInputStream()
           
 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
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.IaBlob

public Blob.IaBlob(int[] blob)

Blob.IaBlob

public Blob.IaBlob(int[] blob,
                   int offset,
                   int length)

Blob.IaBlob

public Blob.IaBlob(int[] blob,
                   int offset,
                   int length,
                   int[] shifts)

Blob.IaBlob

public Blob.IaBlob(int[] blob,
                   int offset,
                   int length,
                   int mask)

Blob.IaBlob

public Blob.IaBlob(int[] blob,
                   int offset,
                   int length,
                   int mask,
                   int[] shifts)
Method Detail

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

computeLength

protected long computeLength()
                      throws java.io.IOException
Specified by:
computeLength in class Blob
Throws:
java.io.IOException

get

public byte[] get(long start,
                  int length)
           throws java.io.IOException
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
Throws:
java.io.IOException

get

public int get(long start,
               byte[] dest)
        throws java.io.IOException
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
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class Blob
Throws:
java.io.IOException

set

public void set(long start,
                byte[] data)
         throws java.io.IOException
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
Throws:
java.io.IOException

clear

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

Specified by:
clear in class Blob