public class LittleEndianRandomAccessFile extends RandomAccessFile implements EndianInputOutput
| Constructor and Description |
|---|
LittleEndianRandomAccessFile(File file,
String mode) |
LittleEndianRandomAccessFile(String name,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
double |
readLEDouble()
Read a little endian double.
|
float |
readLEFloat() |
int |
readLEInt()
Read a little endian int.
|
long |
readLELong()
Read a little endian long.
|
short |
readLEShort()
Read a little endian short.
|
void |
writeLEDouble(double d)
Write a little endian double.
|
void |
writeLEFloat(float f)
Write a little endian float.
|
void |
writeLEInt(int i)
Write a little endian int.
|
void |
writeLELong(long l)
Write a little endian int.
|
void |
writeLEShort(short s)
Write a little endian short.
|
void |
writeShort(short s)
Write a big endian short.
|
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, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, read, readDouble, readInt, readLong, readShort, skipBytesclose, getFilePointer, length, write, write, write, writeBytes, writeDouble, writeFloat, writeInt, writeLonglength, seek, setLengthpublic LittleEndianRandomAccessFile(File file, String mode) throws FileNotFoundException
FileNotFoundExceptionpublic LittleEndianRandomAccessFile(String name, String mode) throws FileNotFoundException
FileNotFoundExceptionpublic void flush()
flush in interface EndianOutputpublic double readLEDouble()
throws IOException
EndianInputreadLEDouble in interface EndianInputIOException - If an I/O error occurs.public float readLEFloat()
throws IOException
readLEFloat in interface EndianInputIOExceptionpublic int readLEInt()
throws IOException
EndianInputreadLEInt in interface EndianInputIOException - If an I/O error occurs.public long readLELong()
throws IOException
EndianInputreadLELong in interface EndianInputIOException - If an I/O error occurs.public short readLEShort()
throws IOException
EndianInputreadLEShort in interface EndianInputIOException - If an I/O error occurs.public void writeLEDouble(double d)
throws IOException
EndianOutputwriteLEDouble in interface EndianOutputd - The double.IOException - If an I/O error occurs.public void writeLEFloat(float f)
throws IOException
EndianOutputwriteLEFloat in interface EndianOutputf - The float.IOException - If an I/O error occurs.public void writeLEInt(int i)
throws IOException
EndianOutputwriteLEInt in interface EndianOutputi - The int.IOException - If an I/O error occurs.public void writeLELong(long l)
throws IOException
EndianOutputwriteLELong in interface EndianOutputl - The long.IOException - If an I/O error occurs.public void writeLEShort(short s)
throws IOException
EndianOutputwriteLEShort in interface EndianOutputs - The short.IOException - If an I/O error occurs.public void writeShort(short s)
throws IOException
EndianOutputwriteShort in interface EndianOutputs - The short.IOException - If an I/O error occurs.Copyright © 2015 Revolution Systems Inc.. All rights reserved.