# Class: com.pnfsoftware.jeb.core.input.BytesInput

An [IInput](IInput) backed by a byte array or a slice of one. The wrapped bytes are not copied.

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

Description: Create an input object backing up the provided array of bytes.
parameter: data: non\-null byte array

## Constructor: BytesInput
- parameter: `data`, type: `byte[]`
- parameter: `offset`, type: `int`
- parameter: `length`, type: `int`

Description: Create an input object backing up the provided array of bytes.
parameter: data: non\-null byte array
parameter: offset: start offset in the array
parameter: length: number of bytes to be backed

## Constructor: BytesInput
- parameter: `data`, type: `byte[]`
- parameter: `offset`, type: `int`
- parameter: `length`, type: `int`
- parameter: `name`, type: `java.lang.String`

Description: Create an input object backing up the provided array of bytes.
parameter: data: non\-null byte array
parameter: offset: start offset in the array
parameter: length: number of bytes to be backed
parameter: name: optional name

## Constructor: BytesInput
- parameter: `input`, type: `com.pnfsoftware.jeb.core.input.IInput`
- parameter: `offset`, type: `long`
- parameter: `length`, type: `int`

Description: Create an input object by reading the specified bytes of a source input.
parameter: input: a source input
parameter: offset: offset in source
parameter: length: size to read
throws: on I/O error while reading from the source input

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


## Method: close


## Method: getChannel
- return type: `java.nio.channels.SeekableByteChannel`


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


## Method: getHeader
- return type: `java.nio.ByteBuffer`


## Method: getName
- return type: `java.lang.String`


## Method: getStream
- return type: `java.io.InputStream`


