public class RandomAccessImpl extends java.lang.Object implements AbstractFileRandomAccess
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
f |
protected java.io.RandomAccessFile |
raf |
| Constructor and Description |
|---|
RandomAccessImpl(java.io.File f,
boolean writeAccess) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePointer() |
int |
read(byte[] buf,
int off,
int len) |
void |
seek(long position) |
void |
setLength(long length) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int b) |
public RandomAccessImpl(java.io.File f,
boolean writeAccess)
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
java.io.IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in interface AbstractFileRandomAccessjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface AbstractFileRandomAccessjava.io.IOExceptionpublic void seek(long position)
throws java.io.IOException
seek in interface AbstractFileRandomAccessjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in interface AbstractFileRandomAccessjava.io.IOExceptionpublic void setLength(long length)
throws java.io.IOException
setLength in interface AbstractFileRandomAccessjava.io.IOExceptionpublic long getFilePointer()
throws java.io.IOException
getFilePointer in interface AbstractFileRandomAccessjava.io.IOExceptionCopyright © 2022. All rights reserved.