public class NativeFile extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RandomAccessFile |
r |
| Constructor and Description |
|---|
NativeFile() |
NativeFile(File f,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPosition() |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
int |
readFully(byte[] buf,
int len) |
void |
setPosition(long s) |
protected RandomAccessFile r
public NativeFile()
public NativeFile(File f, String mode) throws FileNotFoundException
FileNotFoundExceptionpublic void setPosition(long s)
throws IOException
IOExceptionpublic int read()
throws IOException
IOExceptionpublic int readFully(byte[] buf,
int len)
throws IOException
IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
IOExceptionpublic long getPosition()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.