| java.lang.Object |
| ↳ |
com.pnfsoftware.jeb.util.io.ChannelUtil |
Class Overview
Utility methods for Channels, in particular, SeekableByteChannels.
Summary
| Public Methods |
|
static
byte
|
get(SeekableByteChannel channel, long position)
|
|
static
byte[]
|
getAllFrom(SeekableByteChannel channel, long position)
|
|
static
int
|
getBEInt(SeekableByteChannel channel, long position)
|
|
static
long
|
getBELong(SeekableByteChannel channel, long position)
|
|
static
short
|
getBEShort(SeekableByteChannel channel, long position)
|
|
static
int
|
getInt(SeekableByteChannel channel, long position, ByteOrder endianness)
|
|
static
int
|
getLEInt(SeekableByteChannel channel, long position)
|
|
static
long
|
getLELong(SeekableByteChannel channel, long position)
|
|
static
short
|
getLEShort(SeekableByteChannel channel, long position)
|
|
static
long
|
getLong(SeekableByteChannel channel, long position, ByteOrder endianness)
|
|
static
short
|
getShort(SeekableByteChannel channel, long position, ByteOrder endianness)
|
|
static
ByteBuffer
|
read(SeekableByteChannel channel, long position, int size, boolean isBigEndian)
|
|
static
ByteBuffer
|
read(SeekableByteChannel channel, long position, int size, boolean isBigEndian, ByteBuffer buffer)
|
|
static
ByteBuffer
|
readBestEffort(SeekableByteChannel channel, long position, int size, boolean isBigEndian, ByteBuffer buffer)
|
|
[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
byte
get
(SeekableByteChannel channel, long position)
public
static
byte[]
getAllFrom
(SeekableByteChannel channel, long position)
public
static
int
getBEInt
(SeekableByteChannel channel, long position)
public
static
long
getBELong
(SeekableByteChannel channel, long position)
public
static
short
getBEShort
(SeekableByteChannel channel, long position)
public
static
int
getInt
(SeekableByteChannel channel, long position, ByteOrder endianness)
public
static
int
getLEInt
(SeekableByteChannel channel, long position)
public
static
long
getLELong
(SeekableByteChannel channel, long position)
public
static
short
getLEShort
(SeekableByteChannel channel, long position)
public
static
long
getLong
(SeekableByteChannel channel, long position, ByteOrder endianness)
public
static
short
getShort
(SeekableByteChannel channel, long position, ByteOrder endianness)
public
static
ByteBuffer
read
(SeekableByteChannel channel, long position, int size, boolean isBigEndian)
public
static
ByteBuffer
read
(SeekableByteChannel channel, long position, int size, boolean isBigEndian, ByteBuffer buffer)
public
static
ByteBuffer
readBestEffort
(SeekableByteChannel channel, long position, int size, boolean isBigEndian, ByteBuffer buffer)