|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.RandomAccessFile hep.io.xdr.XDRRandomAccessFile
A random access file for use with XDR.
Constructor Summary | |
XDRRandomAccessFile(String name,
String mode)
|
Method Summary | |
void |
pad()
Skips appropriate amount to bring stream to 4-byte boundary. |
double[] |
readDoubleArray(double[] buffer)
Reads a double array. |
float[] |
readFloatArray(float[] buffer)
Reads a float array. |
int[] |
readIntArray(int[] buffer)
Reads an integer array. |
String |
readString()
Read a String. |
String |
readString(int l)
Reads a String of length l bytes, and skips appropriate amount to bring stream to 4-byte boundary. |
void |
writeDoubleArray(double[] array)
|
void |
writeDoubleArray(double[] array,
int start,
int n)
|
void |
writeFloatArray(float[] array)
|
void |
writeFloatArray(float[] array,
int start,
int n)
|
void |
writeIntArray(int[] array)
|
void |
writeIntArray(int[] array,
int start,
int n)
|
void |
writeString(String s)
Write a string preceeded by its (int) length |
void |
writeStringChars(String s)
Write a string (no length is written) |
Methods inherited from class java.io.RandomAccessFile |
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, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataInput |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
Methods inherited from interface java.io.DataOutput |
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Constructor Detail |
public XDRRandomAccessFile(String name, String mode) throws IOException
Method Detail |
public void pad() throws IOException
XDRDataInput
pad
in interface XDRDataInput
IOException
public double[] readDoubleArray(double[] buffer) throws IOException
XDRDataInput
readDoubleArray
in interface XDRDataInput
IOException
public float[] readFloatArray(float[] buffer) throws IOException
XDRDataInput
readFloatArray
in interface XDRDataInput
IOException
public int[] readIntArray(int[] buffer) throws IOException
XDRDataInput
readIntArray
in interface XDRDataInput
IOException
public String readString(int l) throws IOException
XDRDataInput
readString
in interface XDRDataInput
IOException
public String readString() throws IOException
XDRDataInput
readString
in interface XDRDataInput
IOException
public void writeDoubleArray(double[] array) throws IOException
writeDoubleArray
in interface XDRDataOutput
IOException
public void writeDoubleArray(double[] array, int start, int n) throws IOException
writeDoubleArray
in interface XDRDataOutput
IOException
public void writeFloatArray(float[] array) throws IOException
writeFloatArray
in interface XDRDataOutput
IOException
public void writeFloatArray(float[] array, int start, int n) throws IOException
writeFloatArray
in interface XDRDataOutput
IOException
public void writeIntArray(int[] array) throws IOException
writeIntArray
in interface XDRDataOutput
IOException
public void writeIntArray(int[] array, int start, int n) throws IOException
writeIntArray
in interface XDRDataOutput
IOException
public void writeString(String s) throws IOException
XDRDataOutput
writeString
in interface XDRDataOutput
IOException
public void writeStringChars(String s) throws IOException
XDRDataOutput
writeStringChars
in interface XDRDataOutput
IOException
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |