Package org.eclipse.net4j.util.io
Class DataInputOutputFile
java.lang.Object
org.eclipse.net4j.util.io.DataInputOutputFile
- All Implemented Interfaces:
Closeable
,DataInput
,DataOutput
,Flushable
,AutoCloseable
public class DataInputOutputFile
extends Object
implements DataInput, DataOutput, Flushable, Closeable
- Since:
- 3.3
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorDescriptionDataInputOutputFile
(File file, String mode) DataInputOutputFile
(File file, String mode, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
long
long
length()
int
read()
int
read
(byte[] array) int
read
(byte[] array, int offset, int length) boolean
byte
readByte()
byte[]
readBytes
(int count) char
readChar()
double
float
void
readFully
(byte[] array) void
readFully
(byte[] array, int offset, int length) int
readInt()
readLine()
long
readLong()
short
int
int
readUTF()
void
seek
(long filePointer) int
skipBytes
(int n) void
write
(byte[] array) void
write
(byte[] array, int offset, int length) void
write
(int byteValue) void
writeBoolean
(boolean value) void
writeByte
(int value) void
writeBytes
(String value) void
writeChar
(int value) void
writeChars
(String value) void
writeDouble
(double value) void
writeFloat
(float value) void
writeInt
(int value) void
writeLong
(long value) void
writeShort
(int value) void
-
Constructor Details
-
DataInputOutputFile
- Throws:
FileNotFoundException
-
DataInputOutputFile
- Throws:
FileNotFoundException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Throws:
IOException
-
seek
- Throws:
IOException
-
getFilePointer
- Throws:
IOException
-
length
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Throws:
IOException
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Throws:
IOException
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Throws:
IOException
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
- Throws:
IOException
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Throws:
IOException
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Throws:
IOException
-