Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class FixedRecordFile extends RandomAccessFile
| Constructor and Description |
|---|
FixedRecordFile(File file,
String mode,
int recordLength) |
FixedRecordFile(String name,
String mode,
int recordLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(int index) |
void |
addRecords(int index,
int numRecords) |
static void |
copyBytes(RandomAccessFile from,
long fromIndex,
RandomAccessFile to,
long toIndex,
long numBytes) |
static void |
copyRecords(FixedRecordFile from,
long fromIndex,
FixedRecordFile to,
long toIndex,
long numRecords) |
int |
getRecordCount() |
int |
getRecordLength() |
void |
removeAllRecords() |
void |
removeRecord(int index) |
void |
seekToExistingRecord(int index) |
void |
swap(int index1,
int index2) |
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic FixedRecordFile(String name, String mode, int recordLength) throws FileNotFoundException
FileNotFoundExceptionpublic FixedRecordFile(File file, String mode, int recordLength) throws FileNotFoundException
FileNotFoundExceptionpublic void seekToExistingRecord(int index)
throws IndexOutOfBoundsException,
IOException
IndexOutOfBoundsExceptionIOExceptionpublic void addRecord(int index)
throws IndexOutOfBoundsException,
IOException
IndexOutOfBoundsExceptionIOExceptionpublic void addRecords(int index,
int numRecords)
throws IndexOutOfBoundsException,
IOException
IndexOutOfBoundsExceptionIOExceptionpublic int getRecordCount()
throws IOException
IOExceptionpublic static void copyBytes(RandomAccessFile from, long fromIndex, RandomAccessFile to, long toIndex, long numBytes) throws IOException
IOExceptionpublic static void copyRecords(FixedRecordFile from, long fromIndex, FixedRecordFile to, long toIndex, long numRecords) throws IOException
IOExceptionpublic void removeAllRecords()
throws IOException
IOExceptionpublic void removeRecord(int index)
throws IOException
IOExceptionpublic int getRecordLength()
throws IOException
IOExceptionpublic void swap(int index1,
int index2)
throws IOException
IOExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.