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

Helper for [SeekableByteChannel](SeekableByteChannel)s. 

 The provided channel is neither closed nor position\-verified. Methods of this class are not thread\-safe.

## Constructor: ChannelHelper
- parameter: `channel`, type: `java.nio.channels.SeekableByteChannel`
- parameter: `endianness`, type: `com.pnfsoftware.jeb.util.io.Endianness`

Description: Create a primitive reader helper for a seekable byte channel.
parameter: channel: input channel
parameter: endianness: byte order to use when reading multi\-byte values

## Method: get
- return type: `byte`

Description: Read one byte at the current channel position.
return: byte value
throws: if the byte cannot be read

## Method: get
- parameter: `channelPosition`, type: `long`
- return type: `byte`

Description: Read one byte at an absolute channel position.
parameter: channelPosition: absolute channel position
return: byte value
throws: if the byte cannot be read

## Method: getInt
- return type: `int`

Description: Read a 32\-bit integer at the current channel position.
return: decoded value
throws: if the value cannot be read

## Method: getInt
- parameter: `channelPosition`, type: `long`
- return type: `int`

Description: Read a 32\-bit integer at an absolute channel position.
parameter: channelPosition: absolute channel position
return: decoded value
throws: if the value cannot be read

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

Description: Read a 64\-bit integer at the current channel position.
return: decoded value
throws: if the value cannot be read

## Method: getLong
- parameter: `channelPosition`, type: `long`
- return type: `long`

Description: Read a 64\-bit integer at an absolute channel position.
parameter: channelPosition: absolute channel position
return: decoded value
throws: if the value cannot be read

## Method: getShort
- return type: `short`

Description: Read a 16\-bit integer at the current channel position.
return: decoded value
throws: if the value cannot be read

## Method: getShort
- parameter: `channelPosition`, type: `long`
- return type: `short`

Description: Read a 16\-bit integer at an absolute channel position.
parameter: channelPosition: absolute channel position
return: decoded value
throws: if the value cannot be read

