java.lang.Object
ClassLib.Common.java.io.RandomAccessFile
- public abstract class RandomAccessFile
- extends java.lang.Object
RandomAccessFile
- Version:
- $Id: RandomAccessFile.java,v 1.9 2003/07/23 18:29:46 joewhaley Exp $
Method Summary |
void |
close()
|
long |
getFilePointer()
|
private static void |
initIDs()
|
long |
length()
|
void |
open(java.lang.String name,
boolean writeable)
|
int |
read()
|
private int |
readBytes(byte[] b,
int off,
int len)
|
private int |
readBytes(byte[] b,
int off,
int len,
FileDescriptor fd)
|
void |
seek(long pos)
|
void |
setLength(long newLength)
|
void |
write(int b)
|
private void |
writeBytes(byte[] b,
int off,
int len)
|
private void |
writeBytes(byte[] b,
int off,
int len,
FileDescriptor fd)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fd
private FileDescriptor fd
RandomAccessFile
public RandomAccessFile()
open
public void open(java.lang.String name,
boolean writeable)
throws java.io.FileNotFoundException
read
public int read()
throws java.io.IOException
readBytes
private int readBytes(byte[] b,
int off,
int len)
throws java.io.IOException
readBytes
private int readBytes(byte[] b,
int off,
int len,
FileDescriptor fd)
throws java.io.IOException
write
public void write(int b)
throws java.io.IOException
writeBytes
private void writeBytes(byte[] b,
int off,
int len)
throws java.io.IOException
writeBytes
private void writeBytes(byte[] b,
int off,
int len,
FileDescriptor fd)
throws java.io.IOException
getFilePointer
public long getFilePointer()
throws java.io.IOException
seek
public void seek(long pos)
throws java.io.IOException
length
public long length()
throws java.io.IOException
setLength
public void setLength(long newLength)
throws java.io.IOException
close
public void close()
throws java.io.IOException
initIDs
private static void initIDs()