| java.lang.Object |
| ↳ |
com.pnfsoftware.jeb.core.input.InputHelper |
Class Overview
Static helper methods for IInput.
Summary
| Public Methods |
|
static
int
|
readBytes(IInput src, long srcOffset, byte[] dst, int dstOffset, int size)
Convenience method to read bytes from an input source.
|
|
static
IInput
|
wrapBytes(byte[] data)
Create or retrieve an input object wrapping a given byte array.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
Public Constructors
Public Methods
public
static
int
readBytes
(IInput src, long srcOffset, byte[] dst, int dstOffset, int size)
Convenience method to read bytes from an input source.
Parameters
| src |
source input |
| srcOffset |
offset within the source |
| dst |
destination array |
| dstOffset |
offset within the destination where bytes will be written |
| size |
count of bytes to read from the source and write to the destination |
Returns
- the number of bytes that were actually read, -1 if there is no more bytes to be read
public
static
IInput
wrapBytes
(byte[] data)
Create or retrieve an input object wrapping a given byte array.
Parameters
| data |
the data array to be wrapped, cannot be null |
Returns
- a new or existing input object wrapping data