# Class: com.pnfsoftware.jeb.util.io.ArraySeekableByteChannel

Read\-only, seekable, byte\-array backed channel.

## Constructor: ArraySeekableByteChannel
- parameter: `data`, type: `byte[]`

Description: Create a read\-only, seekable byte channel backed by a byte array.
parameter: data: input data to be wrapped

## Constructor: ArraySeekableByteChannel
- parameter: `data`, type: `byte[]`
- parameter: `arrayBaseOffset`, type: `int`
- parameter: `size`, type: `int`

Description: Create a read\-only, seekable byte channel backed by a byte array.
parameter: data: input data to be wrapped
parameter: arrayBaseOffset: base offset which will be associated to position 0 in the channel
parameter: size: available size from the base offset

## Method: close


## Method: isOpen
- return type: `boolean`


## Method: position
- return type: `long`


## Method: position
- parameter: `newPosition`, type: `long`
- return type: `java.nio.channels.SeekableByteChannel`


## Method: read
- parameter: `dst`, type: `java.nio.ByteBuffer`
- return type: `int`

Description: Note that this implementation reads all the bytes it can read, up to the requested amount, which means there is no need for a `read()` loop.

## Method: size
- return type: `long`


## Method: truncate
- parameter: `size`, type: `long`
- return type: `java.nio.channels.SeekableByteChannel`


## Method: write
- parameter: `src`, type: `java.nio.ByteBuffer`
- return type: `int`


