Package org.eclipse.net4j.util.io
Class DataInputOutputFile
- java.lang.Object
- 
- org.eclipse.net4j.util.io.DataInputOutputFile
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.io.DataInput,- java.io.DataOutput,- java.io.Flushable,- java.lang.AutoCloseable
 
 public class DataInputOutputFile extends java.lang.Object implements java.io.DataInput, java.io.DataOutput, java.io.Flushable, java.io.Closeable- Since:
- 3.3
- Author:
- Eike Stepper
 
- 
- 
Constructor SummaryConstructors Constructor Description DataInputOutputFile(java.io.File file, java.lang.String mode)DataInputOutputFile(java.io.File file, java.lang.String mode, int bufferSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()longgetFilePointer()longlength()intread()intread(byte[] array)intread(byte[] array, int offset, int length)booleanreadBoolean()bytereadByte()byte[]readBytes(int count)charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] array)voidreadFully(byte[] array, int offset, int length)intreadInt()java.lang.StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()java.lang.StringreadUTF()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(java.lang.String value)voidwriteChar(int value)voidwriteChars(java.lang.String value)voidwriteDouble(double value)voidwriteFloat(float value)voidwriteInt(int value)voidwriteLong(long value)voidwriteShort(int value)voidwriteUTF(java.lang.String value)
 
- 
- 
- 
Constructor Detail- 
DataInputOutputFilepublic DataInputOutputFile(java.io.File file, java.lang.String mode) throws java.io.FileNotFoundException- Throws:
- java.io.FileNotFoundException
 
 - 
DataInputOutputFilepublic DataInputOutputFile(java.io.File file, java.lang.String mode, int bufferSize) throws java.io.FileNotFoundException- Throws:
- java.io.FileNotFoundException
 
 
- 
 - 
Method Detail- 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Throws:
- java.io.IOException
 
 - 
flushpublic void flush() throws java.io.IOException- Specified by:
- flushin interface- java.io.Flushable
- Throws:
- java.io.IOException
 
 - 
seekpublic void seek(long filePointer) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getFilePointerpublic long getFilePointer() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
lengthpublic long length() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
skipBytespublic int skipBytes(int n) throws java.io.IOException- Specified by:
- skipBytesin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readpublic int read() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] array, int offset, int length) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] array) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
readBytespublic byte[] readBytes(int count) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
readFullypublic void readFully(byte[] array) throws java.io.IOException- Specified by:
- readFullyin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readFullypublic void readFully(byte[] array, int offset, int length) throws java.io.IOException- Specified by:
- readFullyin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readBooleanpublic boolean readBoolean() throws java.io.IOException- Specified by:
- readBooleanin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readBytepublic byte readByte() throws java.io.IOException- Specified by:
- readBytein interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readUnsignedBytepublic int readUnsignedByte() throws java.io.IOException- Specified by:
- readUnsignedBytein interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readShortpublic short readShort() throws java.io.IOException- Specified by:
- readShortin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readUnsignedShortpublic int readUnsignedShort() throws java.io.IOException- Specified by:
- readUnsignedShortin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readCharpublic char readChar() throws java.io.IOException- Specified by:
- readCharin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readIntpublic int readInt() throws java.io.IOException- Specified by:
- readIntin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readLongpublic long readLong() throws java.io.IOException- Specified by:
- readLongin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readFloatpublic float readFloat() throws java.io.IOException- Specified by:
- readFloatin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readDoublepublic double readDouble() throws java.io.IOException- Specified by:
- readDoublein interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readLinepublic java.lang.String readLine() throws java.io.IOException- Specified by:
- readLinein interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
readUTFpublic java.lang.String readUTF() throws java.io.IOException- Specified by:
- readUTFin interface- java.io.DataInput
- Throws:
- java.io.IOException
 
 - 
writepublic void write(int byteValue) throws java.io.IOException- Specified by:
- writein interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writepublic void write(byte[] array) throws java.io.IOException- Specified by:
- writein interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writepublic void write(byte[] array, int offset, int length) throws java.io.IOException- Specified by:
- writein interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeBooleanpublic void writeBoolean(boolean value) throws java.io.IOException- Specified by:
- writeBooleanin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeBytepublic void writeByte(int value) throws java.io.IOException- Specified by:
- writeBytein interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeShortpublic void writeShort(int value) throws java.io.IOException- Specified by:
- writeShortin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeCharpublic void writeChar(int value) throws java.io.IOException- Specified by:
- writeCharin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeIntpublic void writeInt(int value) throws java.io.IOException- Specified by:
- writeIntin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeLongpublic void writeLong(long value) throws java.io.IOException- Specified by:
- writeLongin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeFloatpublic void writeFloat(float value) throws java.io.IOException- Specified by:
- writeFloatin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeDoublepublic void writeDouble(double value) throws java.io.IOException- Specified by:
- writeDoublein interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeBytespublic void writeBytes(java.lang.String value) throws java.io.IOException- Specified by:
- writeBytesin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeCharspublic void writeChars(java.lang.String value) throws java.io.IOException- Specified by:
- writeCharsin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 - 
writeUTFpublic void writeUTF(java.lang.String value) throws java.io.IOException- Specified by:
- writeUTFin interface- java.io.DataOutput
- Throws:
- java.io.IOException
 
 
- 
 
-