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 long
getFilePointer()
int
read()
int
read(byte[] bytes, int off, int len)
void
seek(long pos)
void
write(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:
read
in classRandomAccessFile
- Throws:
IOException
-
read
public int read(@NotNull byte[] bytes, int off, int len) throws IOException
- Overrides:
read
in classRandomAccessFile
- Throws:
IOException
-
seek
public void seek(long pos) throws IOException
- Overrides:
seek
in classRandomAccessFile
- Throws:
IOException
-
getFilePointer
public long getFilePointer() throws IOException
- Overrides:
getFilePointer
in classRandomAccessFile
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Specified by:
write
in interfaceDataOutput
- Overrides:
write
in classRandomAccessFile
- Throws:
IOException
-
-