
public class DataInputOutputFile extends Object implements DataInput, DataOutput, Flushable, Closeable
| Constructor and Description |
|---|
DataInputOutputFile(File file,
String mode) |
DataInputOutputFile(File file,
String mode,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getFilePointer() |
long |
length() |
int |
read() |
int |
read(byte[] array) |
int |
read(byte[] array,
int offset,
int length) |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readBytes(int count) |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] array) |
void |
readFully(byte[] array,
int offset,
int length) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
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 |
writeUTF(String value) |
public DataInputOutputFile(File file, String mode) throws FileNotFoundException
FileNotFoundExceptionpublic DataInputOutputFile(File file, String mode, int bufferSize) throws FileNotFoundException
FileNotFoundExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void seek(long filePointer)
throws IOException
IOExceptionpublic long getFilePointer()
throws IOException
IOExceptionpublic long length()
throws IOException
IOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic int read()
throws IOException
IOExceptionpublic int read(byte[] array,
int offset,
int length)
throws IOException
IOExceptionpublic int read(byte[] array)
throws IOException
IOExceptionpublic byte[] readBytes(int count)
throws IOException
IOExceptionpublic void readFully(byte[] array)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] array,
int offset,
int length)
throws IOException
readFully in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic void write(int byteValue)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] array)
throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] array,
int offset,
int length)
throws IOException
write in interface DataOutputIOExceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int value)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int value)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int value)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int value)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long value)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float value)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double value)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String value) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String value) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String value) throws IOException
writeUTF in interface DataOutputIOExceptionCopyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.