public abstract class AbstractRawFileOperationSupport extends Object implements RawFileOperationSupport
Modifier and Type | Class and Description |
---|---|
static class |
AbstractRawFileOperationSupport.RawFileOperationSupportHolder |
RawFileOperationSupport.FileAccessMode, RawFileOperationSupport.RawFileDescriptor
Modifier | Constructor and Description |
---|---|
protected |
AbstractRawFileOperationSupport(boolean useNativeByteOrder) |
Modifier and Type | Method and Description |
---|---|
RawFileOperationSupport.RawFileDescriptor |
open(String filename,
RawFileOperationSupport.FileAccessMode mode)
Opens or creates a file with the specified
access mode . |
boolean |
write(RawFileOperationSupport.RawFileDescriptor fd,
byte[] data)
Writes data to the current file position and advances the file position.
|
boolean |
writeBoolean(RawFileOperationSupport.RawFileDescriptor fd,
boolean data)
Writes data to the current file position and advances the file position.
|
boolean |
writeByte(RawFileOperationSupport.RawFileDescriptor fd,
byte data)
Writes data to the current file position and advances the file position.
|
boolean |
writeChar(RawFileOperationSupport.RawFileDescriptor fd,
char data)
Writes a char value in the specified byte ordering to the current file position and advances
the file position.
|
boolean |
writeInt(RawFileOperationSupport.RawFileDescriptor fd,
int data)
Writes an integer value in the specified byte ordering to the current file position and
advances the file position.
|
boolean |
writeLong(RawFileOperationSupport.RawFileDescriptor fd,
long data)
Writes a long value in the specified byte ordering to the current file position and advances
the file position.
|
boolean |
writeShort(RawFileOperationSupport.RawFileDescriptor fd,
short data)
Writes a short value in the specified byte ordering to the current file position and advances
the file position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bigEndian, close, isValid, littleEndian, nativeByteOrder, open, position, read, seek, size, write
protected AbstractRawFileOperationSupport(boolean useNativeByteOrder)
public RawFileOperationSupport.RawFileDescriptor open(String filename, RawFileOperationSupport.FileAccessMode mode)
RawFileOperationSupport
access mode
.open
in interface RawFileOperationSupport
RawFileOperationSupport.isValid(com.oracle.svm.core.os.RawFileOperationSupport.RawFileDescriptor)
will return false.public boolean write(RawFileOperationSupport.RawFileDescriptor fd, byte[] data)
RawFileOperationSupport
write
in interface RawFileOperationSupport
public boolean writeBoolean(RawFileOperationSupport.RawFileDescriptor fd, boolean data)
RawFileOperationSupport
writeBoolean
in interface RawFileOperationSupport
public boolean writeByte(RawFileOperationSupport.RawFileDescriptor fd, byte data)
RawFileOperationSupport
writeByte
in interface RawFileOperationSupport
public boolean writeShort(RawFileOperationSupport.RawFileDescriptor fd, short data)
RawFileOperationSupport
writeShort
in interface RawFileOperationSupport
public boolean writeChar(RawFileOperationSupport.RawFileDescriptor fd, char data)
RawFileOperationSupport
writeChar
in interface RawFileOperationSupport
public boolean writeInt(RawFileOperationSupport.RawFileDescriptor fd, int data)
RawFileOperationSupport
writeInt
in interface RawFileOperationSupport
public boolean writeLong(RawFileOperationSupport.RawFileDescriptor fd, long data)
RawFileOperationSupport
writeLong
in interface RawFileOperationSupport