public class FixedLengthStringIO
extends java.lang.Object
Constructor and Description |
---|
FixedLengthStringIO() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
readFixedLengthString(int size,
java.io.DataInput inFile)
Reads and returns a string of fixed-length size from a RandomAccessFile object.
|
static void |
writeFixedLengthString(java.lang.String outString,
int size,
java.io.DataOutput outFile)
Writes a string of fixed-length size to a RandomAccessFile object.
|
public static java.lang.String readFixedLengthString(int size, java.io.DataInput inFile) throws java.io.IOException
size
- an int which is the number of characters to readinFile
- the RandomAccess file object which is assigned
to the DataInput objectjava.io.IOException
- for anypublic static void writeFixedLengthString(java.lang.String outString, int size, java.io.DataOutput outFile) throws java.io.IOException
outString
- the string to be written to the RandomAccessFile objectsize
- an int which is the number of characters to be writtenoutFile
- the RandomAccess file object which is assigned
to the DataOutput objectjava.io.IOException