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
ConstructorsConstructorDescriptionERandomAccessFile(File file, String mode) ERandomAccessFile(String file, String mode) -
Method Summary
Modifier and TypeMethodDescriptionlonggetPath()Get the path of the file readerorder()Get the byte order of the filefinal voidreadFullyE(byte[] bytes) final longreadIntE()final longfinal shortvoidseek(long pos) voidsetEndian(boolean le) voidsetFileOffset(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:
getFilePointerin classRandomAccessFile- Throws:
IOException
-
seek
- Overrides:
seekin classRandomAccessFile- Throws:
IOException
-
order
Get the byte order of the file- Returns:
ByteOrder.LITTLE_ENDIANorByteOrder.BIG_ENDIAN- Since:
- 7.0
-