javax.imageio.stream

Class IIOByteBuffer

public class IIOByteBuffer extends Object

A data structure for holding a reference to a byte array, an index into that array, and a number of bytes, that can be passed to one specific variant of the {@link javax.imageio.stream.ImageInputStream#readBytes(IIOByteBuffer, int) readBytes} method.

Since: 1.4

Constructor Summary
IIOByteBuffer(byte[] data, int offset, int length)
Method Summary
byte[]getData()
intgetLength()
intgetOffset()
voidsetData(byte[] data)
voidsetLength(int length)
voidsetOffset(int offset)

Constructor Detail

IIOByteBuffer

public IIOByteBuffer(byte[] data, int offset, int length)

Method Detail

getData

public byte[] getData()

getLength

public int getLength()

getOffset

public int getOffset()

setData

public void setData(byte[] data)

setLength

public void setLength(int length)

setOffset

public void setOffset(int offset)