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