java.io.Closeable
, java.io.DataInput
, java.io.DataOutput
, java.lang.AutoCloseable
, RandomAccessInterface
public class RAIFile extends java.lang.Object implements RandomAccessInterface, java.io.DataInput, java.io.DataOutput
コンストラクタ | 説明 |
---|---|
RAIFile(java.io.File file,
boolean read,
boolean write) |
|
RAIFile(java.io.RandomAccessFile file) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
canWrite() |
I2P is the file writable?
Only valid if the File constructor was used, not the RAF constructor
|
void |
close() |
|
long |
getFilePointer() |
|
long |
length() |
|
int |
read() |
|
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[] b) |
|
void |
readFully(byte[] b,
int off,
int len) |
|
int |
readInt() |
|
java.lang.String |
readLine() |
|
long |
readLong() |
|
short |
readShort() |
|
int |
readUnsignedByte() |
|
int |
readUnsignedInt() |
I2P
|
int |
readUnsignedShort() |
|
java.lang.String |
readUTF() |
Read a UTF encoded string
I would delegate here.
|
void |
seek(long pos) |
|
void |
setLength(long newLength) |
|
int |
skipBytes(int n) |
|
java.lang.String |
toString() |
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
|
void |
writeBoolean(boolean v) |
|
void |
writeByte(int v) |
|
void |
writeBytes(java.lang.String s) |
|
void |
writeChar(int v) |
|
void |
writeChars(java.lang.String s) |
|
void |
writeDouble(double v) |
|
void |
writeFloat(float v) |
|
void |
writeInt(int v) |
|
void |
writeLong(long v) |
|
void |
writeShort(int v) |
|
void |
writeUTF(java.lang.String str) |
Write a UTF encoded string
I would delegate here.
|
public RAIFile(java.io.RandomAccessFile file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public RAIFile(java.io.File file, boolean read, boolean write) throws java.io.FileNotFoundException
read
- must be truejava.io.FileNotFoundException
public boolean canWrite()
canWrite
インタフェース内 RandomAccessInterface
public java.lang.String toString()
toString
クラス内 java.lang.Object
public long getFilePointer() throws java.io.IOException
getFilePointer
インタフェース内 RandomAccessInterface
java.io.IOException
public long length() throws java.io.IOException
length
インタフェース内 RandomAccessInterface
java.io.IOException
public int read() throws java.io.IOException
read
インタフェース内 RandomAccessInterface
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
インタフェース内 RandomAccessInterface
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
インタフェース内 RandomAccessInterface
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
インタフェース内 RandomAccessInterface
java.io.IOException
public void setLength(long newLength) throws java.io.IOException
setLength
インタフェース内 RandomAccessInterface
java.io.IOException
public void close() throws java.io.IOException
close
インタフェース内 java.lang.AutoCloseable
close
インタフェース内 java.io.Closeable
close
インタフェース内 RandomAccessInterface
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
インタフェース内 java.io.DataInput
readBoolean
インタフェース内 RandomAccessInterface
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
インタフェース内 java.io.DataInput
readByte
インタフェース内 RandomAccessInterface
java.io.IOException
public char readChar() throws java.io.IOException
readChar
インタフェース内 java.io.DataInput
readChar
インタフェース内 RandomAccessInterface
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
インタフェース内 java.io.DataInput
readDouble
インタフェース内 RandomAccessInterface
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
インタフェース内 java.io.DataInput
readFloat
インタフェース内 RandomAccessInterface
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
readFully
インタフェース内 java.io.DataInput
readFully
インタフェース内 RandomAccessInterface
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
インタフェース内 java.io.DataInput
readFully
インタフェース内 RandomAccessInterface
java.io.IOException
public int readInt() throws java.io.IOException
readInt
インタフェース内 java.io.DataInput
readInt
インタフェース内 RandomAccessInterface
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
readLine
インタフェース内 java.io.DataInput
readLine
インタフェース内 RandomAccessInterface
java.io.IOException
public long readLong() throws java.io.IOException
readLong
インタフェース内 java.io.DataInput
readLong
インタフェース内 RandomAccessInterface
java.io.IOException
public short readShort() throws java.io.IOException
readShort
インタフェース内 java.io.DataInput
readShort
インタフェース内 RandomAccessInterface
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
インタフェース内 java.io.DataInput
readUnsignedByte
インタフェース内 RandomAccessInterface
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
インタフェース内 java.io.DataInput
readUnsignedShort
インタフェース内 RandomAccessInterface
java.io.IOException
public int readUnsignedInt() throws java.io.IOException
readUnsignedInt
インタフェース内 RandomAccessInterface
java.io.IOException
- if the read value is negativepublic java.lang.String readUTF() throws java.io.IOException
readUTF
インタフェース内 java.io.DataInput
readUTF
インタフェース内 RandomAccessInterface
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
インタフェース内 java.io.DataInput
skipBytes
インタフェース内 RandomAccessInterface
java.io.IOException
public void write(int b) throws java.io.IOException
write
インタフェース内 java.io.DataOutput
write
インタフェース内 RandomAccessInterface
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
インタフェース内 java.io.DataOutput
write
インタフェース内 RandomAccessInterface
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
インタフェース内 java.io.DataOutput
write
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeBoolean(boolean v) throws java.io.IOException
writeBoolean
インタフェース内 java.io.DataOutput
writeBoolean
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeByte(int v) throws java.io.IOException
writeByte
インタフェース内 java.io.DataOutput
writeByte
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeShort(int v) throws java.io.IOException
writeShort
インタフェース内 java.io.DataOutput
writeShort
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeChar(int v) throws java.io.IOException
writeChar
インタフェース内 java.io.DataOutput
writeChar
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeInt(int v) throws java.io.IOException
writeInt
インタフェース内 java.io.DataOutput
writeInt
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeLong(long v) throws java.io.IOException
writeLong
インタフェース内 java.io.DataOutput
writeLong
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
writeFloat
インタフェース内 java.io.DataOutput
writeFloat
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeDouble(double v) throws java.io.IOException
writeDouble
インタフェース内 java.io.DataOutput
writeDouble
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeBytes(java.lang.String s) throws java.io.IOException
writeBytes
インタフェース内 java.io.DataOutput
writeBytes
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeChars(java.lang.String s) throws java.io.IOException
writeChars
インタフェース内 java.io.DataOutput
writeChars
インタフェース内 RandomAccessInterface
java.io.IOException
public void writeUTF(java.lang.String str) throws java.io.IOException
writeUTF
インタフェース内 java.io.DataOutput
writeUTF
インタフェース内 RandomAccessInterface
java.io.IOException