Package org.eclipse.cdt.utils
Class ERandomAccessFile
java.lang.Object
java.io.RandomAccessFile
org.eclipse.cdt.utils.ERandomAccessFile
- All Implemented Interfaces:
Closeable
,DataInput
,DataOutput
,AutoCloseable
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorDescriptionERandomAccessFile
(File file, String mode) ERandomAccessFile
(String file, String mode) -
Method Summary
Modifier and TypeMethodDescriptionlong
getPath()
Get the path of the file readerorder()
Get the byte order of the filefinal void
readFullyE
(byte[] bytes) final long
readIntE()
final long
final short
void
seek
(long pos) void
setEndian
(boolean le) void
setFileOffset
(long offset) Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Constructor Details
-
ERandomAccessFile
- Throws:
IOException
-
ERandomAccessFile
- Throws:
IOException
-
-
Method Details
-
setEndian
public void setEndian(boolean le) -
readShortE
- Throws:
IOException
-
readIntE
- Throws:
IOException
-
readLongE
- Throws:
IOException
-
readFullyE
- Throws:
IOException
-
setFileOffset
- Throws:
IOException
-
getPath
Get the path of the file reader- Since:
- 7.0
-
getFilePointer
- Overrides:
getFilePointer
in classRandomAccessFile
- Throws:
IOException
-
seek
- Overrides:
seek
in classRandomAccessFile
- Throws:
IOException
-
order
Get the byte order of the file- Returns:
ByteOrder.LITTLE_ENDIAN
orByteOrder.BIG_ENDIAN
- Since:
- 7.0
-