public class RandomAccessImpl extends Object implements AbstractFileRandomAccess
| Modifier and Type | Field and Description |
|---|---|
protected File |
f |
protected RandomAccessFile |
raf |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getFilePointer() |
long |
length() |
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) |
protected RandomAccessFile raf
protected File f
public void write(int b)
throws IOException
IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in interface AbstractFileRandomAccessIOExceptionpublic void close()
throws IOException
close in interface AbstractFileRandomAccessIOExceptionpublic void seek(long position)
throws IOException
seek in interface AbstractFileRandomAccessIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in interface AbstractFileRandomAccessIOExceptionpublic void setLength(long length)
throws IOException
setLength in interface AbstractFileRandomAccessIOExceptionpublic long getFilePointer()
throws IOException
getFilePointer in interface AbstractFileRandomAccessIOExceptionpublic long length()
throws IOException
length in interface AbstractFileRandomAccessIOExceptionCopyright © 2025. All rights reserved.