public class ElfFileChannel extends java.lang.Object implements ElfByteChannel
| Constructor and Description |
|---|
ElfFileChannel(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
void |
openChannel() |
long |
position() |
ElfByteChannel |
position(long newPosition) |
int |
read(java.nio.ByteBuffer dst) |
int |
read(java.nio.ByteBuffer dst,
long position) |
long |
size() |
ElfByteChannel |
truncate(long size) |
int |
write(java.nio.ByteBuffer src) |
public ElfFileChannel(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void openChannel()
throws java.io.IOException
java.io.IOExceptionpublic long position()
throws java.io.IOException
position in interface ElfByteChanneljava.io.IOExceptionpublic ElfByteChannel position(long newPosition) throws java.io.IOException
position in interface ElfByteChanneljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface ElfByteChannelread in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst,
long position)
throws java.io.IOException
read in interface ElfByteChanneljava.io.IOExceptionpublic long size()
throws java.io.IOException
size in interface ElfByteChanneljava.io.IOExceptionpublic ElfByteChannel truncate(long size) throws java.io.IOException
truncate in interface ElfByteChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface ElfByteChannelwrite in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic boolean isOpen()
isOpen in interface java.nio.channels.Channel