org.ujmp.core.util.io
Class BufferedRandomAccessFile
- java.lang.Object
-
- java.io.RandomAccessFile
-
- org.ujmp.core.util.io.BufferedRandomAccessFile
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataInput, java.io.DataOutput, java.lang.AutoCloseable
public class BufferedRandomAccessFile extends java.io.RandomAccessFile
-
-
Constructor Summary
Constructors Constructor and Description BufferedRandomAccessFile(java.io.File file, java.lang.String mode)BufferedRandomAccessFile(java.io.File file, java.lang.String mode, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intread()intread(byte[] b)intread(long seek, byte[] b)voidseek(long pos)voidwrite(long seek, byte[] array)voidwriteByte(long seek, byte value)voidwriteChar(long seek, char value)voidwriteDouble(long seek, double value)voidwriteFloat(long seek, float value)voidwriteInt(long seek, int value)voidwriteLong(long seek, long value)voidwriteShort(long seek, short value)-
Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, 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
-
-
-
-
Constructor Detail
-
BufferedRandomAccessFile
public BufferedRandomAccessFile(java.io.File file, java.lang.String mode) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
BufferedRandomAccessFile
public BufferedRandomAccessFile(java.io.File file, java.lang.String mode, int bufferSize) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.RandomAccessFile- Throws:
java.io.IOException
-
seek
public void seek(long pos) throws java.io.IOException- Overrides:
seekin classjava.io.RandomAccessFile- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.RandomAccessFile- Throws:
java.io.IOException
-
read
public int read(long seek, byte[] b) throws java.io.IOException- Throws:
java.io.IOException
-
writeByte
public void writeByte(long seek, byte value) throws java.io.IOException- Throws:
java.io.IOException
-
writeChar
public void writeChar(long seek, char value) throws java.io.IOException- Throws:
java.io.IOException
-
writeDouble
public void writeDouble(long seek, double value) throws java.io.IOException- Throws:
java.io.IOException
-
writeFloat
public void writeFloat(long seek, float value) throws java.io.IOException- Throws:
java.io.IOException
-
writeShort
public void writeShort(long seek, short value) throws java.io.IOException- Throws:
java.io.IOException
-
write
public void write(long seek, byte[] array) throws java.io.IOException- Throws:
java.io.IOException
-
writeInt
public void writeInt(long seek, int value) throws java.io.IOException- Throws:
java.io.IOException
-
writeLong
public void writeLong(long seek, long value) throws java.io.IOException- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG