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

An seekable channel presenting a region of another seekable channel. Only read\-operations are supported. Attempts to write or modify the master channel will raise an [IOException](IOException).

## Constructor: SubSeekableByteChannel
- parameter: `channel`, type: `java.nio.channels.SeekableByteChannel`
- parameter: `base`, type: `long`
- parameter: `maxsize`, type: `long`

Description: Create a sub channel.
parameter: channel: the main channel
parameter: base: beginning of region
parameter: maxsize: size of region
throws: 

## Method: close

Description: Close this sub\-channel and its master channel.

## 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`


## 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`


