public class BufferedAccessFile extends RandomAccessFile
Constructor and Description |
---|
BufferedAccessFile(File file,
String mode) |
BufferedAccessFile(File file,
String mode,
int bufferSize) |
BufferedAccessFile(String filename,
String mode) |
BufferedAccessFile(String filename,
String mode,
int bufsize) |
Modifier and Type | Method and Description |
---|---|
long |
getFilePointer() |
String |
getNextLine() |
String |
getNextLine(Charset charset) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
close, getChannel, getFD, length, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public BufferedAccessFile(File file, String mode) throws IOException
file
- file to accessmode
- modeIOException
- IOExceptionpublic BufferedAccessFile(File file, String mode, int bufferSize) throws IOException
file
- file to accessmode
- modebufferSize
- bufferSizeIOException
- IOExceptionpublic BufferedAccessFile(String filename, String mode) throws IOException
filename
- fileNamemode
- modeIOException
- IOExceptionpublic BufferedAccessFile(String filename, String mode, int bufsize) throws IOException
filename
- fileNamemode
- modebufsize
- bufsizeIOException
- IOExceptionpublic long getFilePointer() throws IOException
getFilePointer
in class RandomAccessFile
IOException
public final String getNextLine() throws IOException
IOException
- IOExceptionpublic final String getNextLine(Charset charset) throws IOException
charset
- charsetIOException
- IOExceptionpublic final int read() throws IOException
read
in class RandomAccessFile
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class RandomAccessFile
IOException
public void seek(long pos) throws IOException
seek
in class RandomAccessFile
IOException
Copyright © 2016–2024 QASymphony. All rights reserved.