FileDocCategorySizeDatePackage
IIOByteBuffer.javaAPI DocAndroid 1.5 API2927Wed May 06 22:41:54 BST 2009javax.imageio.stream

IIOByteBuffer

public class IIOByteBuffer extends Object
The IIOByteBuffer class represents a byte array with offset and length that is used by ImageInputStream for obtaining a sequence of bytes.
since
Android 1.0

Fields Summary
private byte[]
data
The data.
private int
offset
The offset.
private int
length
The length.
Constructors Summary
public IIOByteBuffer(byte[] data, int offset, int length)
Instantiates a new IIOByteBuffer.

param
data the byte array.
param
offset the offset in the array.
param
length the length of array.

        this.data = data;
        this.offset = offset;
        this.length = length;
    
Methods Summary
public byte[]getData()
Gets the byte array of this IIOByteBuffer.

return
the byte array.

        return data;
    
public intgetLength()
Gets the length in the array which will be used.

return
the length of the data.

        return length;
    
public intgetOffset()
Gets the offset of this IIOByteBuffer.

return
the offset of this IIOByteBuffer.

        return offset;
    
public voidsetData(byte[] data)
Sets the new data array to this IIOByteBuffer object.

param
data the new data array.

        this.data = data;
    
public voidsetLength(int length)
Sets the length of data which will be used.

param
length the new length.

        this.length = length;
    
public voidsetOffset(int offset)
Sets the offset in the data array of this IIOByteBuffer.

param
offset the new offset.

        this.offset = offset;