java.lang.Object |
↳ |
com.pnfsoftware.jeb.util.io.ArraySeekableByteChannel |
Class Overview
Read-only, seekable, byte-array backed channel.
Summary
Public Constructors |
|
ArraySeekableByteChannel(byte[] data)
Create a read-only, seekable byte channel backed by a byte array.
|
|
ArraySeekableByteChannel(byte[] data, int offset, int length)
Create a read-only, seekable byte channel backed by a 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()
|
|
From interface
java.io.Closeable
|
From interface
java.lang.AutoCloseable
|
From interface
java.nio.channels.Channel
abstract
void
|
close()
|
abstract
boolean
|
isOpen()
|
|
From interface
java.nio.channels.ReadableByteChannel
abstract
int
|
read(ByteBuffer arg0)
|
|
From interface
java.nio.channels.SeekableByteChannel
abstract
long
|
position()
|
abstract
SeekableByteChannel
|
position(long arg0)
|
abstract
int
|
read(ByteBuffer arg0)
|
abstract
long
|
size()
|
abstract
SeekableByteChannel
|
truncate(long arg0)
|
abstract
int
|
write(ByteBuffer arg0)
|
|
From interface
java.nio.channels.WritableByteChannel
abstract
int
|
write(ByteBuffer arg0)
|
|
Public Constructors
public
ArraySeekableByteChannel
(byte[] data)
Create a read-only, seekable byte channel backed by a byte array.
Parameters
data |
input data to be wrapped
|
public
ArraySeekableByteChannel
(byte[] data, int offset, int length)
Create a read-only, seekable byte channel backed by a byte array.
Parameters
data |
input data to be wrapped |
offset |
start offset |
length |
wrapped size
|
Public Methods
public
SeekableByteChannel
position
(long newPosition)
public
int
read
(ByteBuffer dst)
public
SeekableByteChannel
truncate
(long size)
public
int
write
(ByteBuffer src)