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
ConstructorsConstructorDescriptionDataInputOutputFile(File file, String mode) DataInputOutputFile(File file, String mode, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()longlonglength()intread()intread(byte[] array) intread(byte[] array, int offset, int length) booleanbytereadByte()byte[]readBytes(int count) charreadChar()doublefloatvoidreadFully(byte[] array) voidreadFully(byte[] array, int offset, int length) intreadInt()readLine()longreadLong()shortintintreadUTF()voidseek(long filePointer) intskipBytes(int n) voidwrite(byte[] array) voidwrite(byte[] array, int offset, int length) voidwrite(int byteValue) voidwriteBoolean(boolean value) voidwriteByte(int value) voidwriteBytes(String value) voidwriteChar(int value) voidwriteChars(String value) voidwriteDouble(double value) voidwriteFloat(float value) voidwriteInt(int value) voidwriteLong(long value) voidwriteShort(int value) void
-
Constructor Details
-
DataInputOutputFile
- Throws:
FileNotFoundException
-
DataInputOutputFile
- Throws:
FileNotFoundException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
seek
- Throws:
IOException
-
getFilePointer
- Throws:
IOException
-
length
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
writeBoolean
- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeChar
- Specified by:
writeCharin interfaceDataOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChars
- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeUTF
- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-