public class DataInputOutputFile
extends java.lang.Object
implements java.io.DataInput, java.io.DataOutput, java.io.Flushable, java.io.Closeable
Constructor and Description |
---|
DataInputOutputFile(java.io.File file,
java.lang.String mode) |
DataInputOutputFile(java.io.File file,
java.lang.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() |
java.lang.String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.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(java.lang.String value) |
void |
writeChar(int value) |
void |
writeChars(java.lang.String value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeShort(int value) |
void |
writeUTF(java.lang.String value) |
public DataInputOutputFile(java.io.File file, java.lang.String mode) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public DataInputOutputFile(java.io.File file, java.lang.String mode, int bufferSize) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
java.io.IOException
public void seek(long filePointer) throws java.io.IOException
java.io.IOException
public long getFilePointer() throws java.io.IOException
java.io.IOException
public long length() throws java.io.IOException
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
java.io.IOException
public int read() throws java.io.IOException
java.io.IOException
public int read(byte[] array, int offset, int length) throws java.io.IOException
java.io.IOException
public int read(byte[] array) throws java.io.IOException
java.io.IOException
public byte[] readBytes(int count) throws java.io.IOException
java.io.IOException
public void readFully(byte[] array) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public void readFully(byte[] array, int offset, int length) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException
public void write(int byteValue) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void write(byte[] array) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void write(byte[] array, int offset, int length) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void writeBoolean(boolean value) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
java.io.IOException
public void writeByte(int value) throws java.io.IOException
writeByte
in interface java.io.DataOutput
java.io.IOException
public void writeShort(int value) throws java.io.IOException
writeShort
in interface java.io.DataOutput
java.io.IOException
public void writeChar(int value) throws java.io.IOException
writeChar
in interface java.io.DataOutput
java.io.IOException
public void writeInt(int value) throws java.io.IOException
writeInt
in interface java.io.DataOutput
java.io.IOException
public void writeLong(long value) throws java.io.IOException
writeLong
in interface java.io.DataOutput
java.io.IOException
public void writeFloat(float value) throws java.io.IOException
writeFloat
in interface java.io.DataOutput
java.io.IOException
public void writeDouble(double value) throws java.io.IOException
writeDouble
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(java.lang.String value) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
java.io.IOException
public void writeChars(java.lang.String value) throws java.io.IOException
writeChars
in interface java.io.DataOutput
java.io.IOException
public void writeUTF(java.lang.String value) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
java.io.IOException
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html