MCPcopy Create free account
hub / github.com/L-JINBIN/ApkDataMultiplexing / RandomAccessFile

Interface RandomAccessFile

src/bin/io/RandomAccessFile.java:10–115  ·  view source on GitHub ↗

@author Bin

Source from the content-addressed store, hash-verified

8 * @author Bin
9 */
10public interface RandomAccessFile extends Closeable {
11
12 void write(int value) throws IOException;
13
14 void write(byte[] data) throws IOException;
15
16 void write(byte[] data, int off, int len) throws IOException;
17
18 int read() throws IOException;
19
20 int read(byte[] data) throws IOException;
21
22 int read(byte[] data, int off, int len) throws IOException;
23
24 void readFully(byte[] data) throws IOException;
25
26 void readFully(byte[] data, int off, int len) throws IOException;
27
28 long length() throws IOException;
29
30 void setLength(long newLength) throws IOException;
31
32 void seek(long pos) throws IOException;
33
34 int skipBytes(int n) throws IOException;
35
36 long getFilePointer() throws IOException;
37
38 String getName();
39
40 RandomAccessFile getAnotherInSameParent(String name) throws IOException;
41
42 RandomAccessFile newSameInstance() throws IOException;
43
44 RandomAccessFile newFragment(long offset, long length) throws IOException;
45
46 void flush() throws IOException;
47
48 boolean isClosed();
49
50 default void writeByte(byte b) throws IOException {
51 write(b);
52 }
53
54 default void writeUShort(int i) throws IOException {
55 write(i & 0xFF);
56 write(i >>> 8 & 0xFF);
57 }
58
59 default void writeShort(short i) throws IOException {
60 writeUShort(i);
61 }
62
63 default void writeChar(char c) throws IOException {
64 writeUShort(c);
65 }
66
67 default void writeInt(int i) throws IOException {

Callers 10

_readBytesMethod · 0.65
readBytesMethod · 0.65
_skipMethod · 0.65
_skipMethod · 0.65
_getFilePointerMethod · 0.65
positionMethod · 0.65
signMethod · 0.65
positionMethod · 0.65
skipMethod · 0.65
closeMethod · 0.65

Implementers 1

BufferedRandomAccessFilesrc/bin/io/BufferedRandomAccessFile.ja

Calls

no outgoing calls

Tested by

no test coverage detected