public final class DafReaderTools extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
address2RecordWord(int address,
int[] record,
int[] word)
Transform an address into a record number and a word inside the record.
|
static long |
nRecord2nByte(int nRecord)
Transform a record number into the byte address of its beginning.
|
static String |
readString(RandomAccessFile file,
int length)
Read a String of a given length from the current pointer in the RandomAccessFile on input.
|
public static String readString(RandomAccessFile file, int length) throws IOException
file - RandomAccessFile already opened from where the string is readlength - Length of the desired StringIOException - if there is a problem while reading the filepublic static long nRecord2nByte(int nRecord)
nRecord - File record we want to accessMathIllegalArgumentException - if the nRecord isn't validpublic static void address2RecordWord(int address,
int[] record,
int[] word)
address - byte address we want to transformrecord - (output) file record where the address pointsword - (output) word inside the record where the address pointsMathIllegalArgumentException - if the address isn't validCopyright © 2025 CNES. All rights reserved.