Package jetbrains.buildServer.util
Class BufferedRandomAccessFile
- java.lang.Object
-
- java.io.RandomAccessFile
-
- jetbrains.buildServer.util.BufferedRandomAccessFile
-
- All Implemented Interfaces:
Closeable,DataInput,DataOutput,AutoCloseable
public class BufferedRandomAccessFile extends RandomAccessFile
-
-
Constructor Summary
Constructors Constructor Description BufferedRandomAccessFile(File file)BufferedRandomAccessFile(File file, int bufSize)BufferedRandomAccessFile(File file, String mode)Deprecated.BufferedRandomAccessFile(File file, String mode, int bufSize)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFilePointer()intread()intread(byte[] bytes, int off, int len)voidseek(long pos)voidwrite(int b)-
Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, length, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Constructor Detail
-
BufferedRandomAccessFile
public BufferedRandomAccessFile(@NotNull File file) throws FileNotFoundException- Throws:
FileNotFoundException
-
BufferedRandomAccessFile
public BufferedRandomAccessFile(@NotNull File file, int bufSize) throws FileNotFoundException- Throws:
FileNotFoundException
-
BufferedRandomAccessFile
@Deprecated public BufferedRandomAccessFile(@NotNull File file, @NotNull String mode) throws FileNotFoundException
Deprecated.- Throws:
FileNotFoundException
-
BufferedRandomAccessFile
@Deprecated public BufferedRandomAccessFile(@NotNull File file, @NotNull String mode, int bufSize) throws FileNotFoundException
Deprecated.- Throws:
FileNotFoundException
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classRandomAccessFile- Throws:
IOException
-
read
public int read(@NotNull byte[] bytes, int off, int len) throws IOException- Overrides:
readin classRandomAccessFile- Throws:
IOException
-
seek
public void seek(long pos) throws IOException- Overrides:
seekin classRandomAccessFile- Throws:
IOException
-
getFilePointer
public long getFilePointer() throws IOException- Overrides:
getFilePointerin classRandomAccessFile- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein interfaceDataOutput- Overrides:
writein classRandomAccessFile- Throws:
IOException
-
-