public class RecoverableRandomAccessFile extends Object implements DataOutput, DataInput, Closeable
| Constructor and Description |
|---|
RecoverableRandomAccessFile(File file,
String mode) |
RecoverableRandomAccessFile(String name,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileChannel |
getChannel() |
FileDescriptor |
getFD() |
protected RandomAccessFile |
getRaf() |
protected void |
handleException() |
long |
length() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] bytes) |
void |
readFully(byte[] bytes,
int i,
int i2) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
seek(long pos) |
void |
setLength(long length) |
int |
skipBytes(int i) |
void |
sync() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int i,
int i2) |
void |
write(int i) |
void |
writeBoolean(boolean b) |
void |
writeByte(int i) |
void |
writeBytes(String s) |
void |
writeChar(int i) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int i) |
void |
writeLong(long l) |
void |
writeShort(int i) |
void |
writeUTF(String s) |
public RecoverableRandomAccessFile(File file, String mode) throws FileNotFoundException
FileNotFoundExceptionpublic RecoverableRandomAccessFile(String name, String mode) throws FileNotFoundException
FileNotFoundExceptionprotected RandomAccessFile getRaf() throws IOException
IOExceptionprotected void handleException() throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void readFully(byte[] bytes) throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] bytes, int i, int i2) throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int i) throws IOException
skipBytes in interface DataInputIOExceptionpublic boolean readBoolean() throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte() throws IOException
readByte in interface DataInputIOExceptionpublic int readUnsignedByte() throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic short readShort() throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedShort() throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic char readChar() throws IOException
readChar in interface DataInputIOExceptionpublic int readInt() throws IOException
readInt in interface DataInputIOExceptionpublic long readLong() throws IOException
readLong in interface DataInputIOExceptionpublic float readFloat() throws IOException
readFloat in interface DataInputIOExceptionpublic double readDouble() throws IOException
readDouble in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic void write(int i) throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] bytes) throws IOException
write in interface DataOutputIOExceptionpublic void write(byte[] bytes, int i, int i2) throws IOException
write in interface DataOutputIOExceptionpublic void writeBoolean(boolean b) throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int i) throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int i) throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int i) throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int i) throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long l) throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v) throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v) throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeUTF(String s) throws IOException
writeUTF in interface DataOutputIOExceptionpublic long length() throws IOException
IOExceptionpublic void setLength(long length) throws IOException
IOExceptionpublic void seek(long pos) throws IOException
IOExceptionpublic FileDescriptor getFD() throws IOException
IOExceptionpublic void sync() throws IOException
IOExceptionpublic FileChannel getChannel() throws IOException
IOExceptionpublic int read(byte[] b, int off, int len) throws IOException
IOExceptionpublic int read(byte[] b) throws IOException
IOExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.