phelps.io

Interface RandomAccess

public interface RandomAccess

File-like objects that support random access. Potentially conflicts with java.util.RandomAccess, but seldom in practice.
Method Summary
voidclose()
longgetFilePointer()
longlength()
intread()
intread(byte[] b, int off, int len)
intread(byte[] b)
voidreadFully(byte[] b)
voidreadFully(byte[] b, int off, int len)
voidseek(long pos)
ByteArrayInputStream: int available() void close() void mark(int readAheadLimit) boolean markSupported() int read() int read(byte[] b, int off, int len) void reset() long skip(long n) RandomAccessFile void close() FileChannel getChannel() FileDescriptor getFD() 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() String readLine() long readLong() short readShort() int readUnsignedByte() int readUnsignedShort() String readUTF() void seek(long pos) void setLength(long newLength) int skipBytes(int n) void writeBoolean(boolean v) void writeByte(int v) void writeBytes(String s) void writeChar(int v) void writeChars(String s) void writeDouble(double v) void writeFloat(float v) void writeInt(int v) void writeLong(long v) void writeShort(int v) void writeUTF(String str)
intskipBytes(int n)
voidwrite(byte[] b)
voidwrite(byte[] b, int off, int len)
voidwrite(int b)

Method Detail

close

public void close()

getFilePointer

public long getFilePointer()

length

public long length()

read

public int read()

read

public int read(byte[] b, int off, int len)

read

public int read(byte[] b)

readFully

public void readFully(byte[] b)

readFully

public void readFully(byte[] b, int off, int len)

seek

public void seek(long pos)
ByteArrayInputStream: int available() void close() void mark(int readAheadLimit) boolean markSupported() int read() int read(byte[] b, int off, int len) void reset() long skip(long n) RandomAccessFile void close() FileChannel getChannel() FileDescriptor getFD() 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() String readLine() long readLong() short readShort() int readUnsignedByte() int readUnsignedShort() String readUTF() void seek(long pos) void setLength(long newLength) int skipBytes(int n) void writeBoolean(boolean v) void writeByte(int v) void writeBytes(String s) void writeChar(int v) void writeChars(String s) void writeDouble(double v) void writeFloat(float v) void writeInt(int v) void writeLong(long v) void writeShort(int v) void writeUTF(String str)

skipBytes

public int skipBytes(int n)

write

public void write(byte[] b)

write

public void write(byte[] b, int off, int len)

write

public void write(int b)