-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathPSTRAFileContent.java
More file actions
54 lines (41 loc) · 1.15 KB
/
PSTRAFileContent.java
File metadata and controls
54 lines (41 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.pff;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
public class PSTRAFileContent extends PSTFileContent {
protected RandomAccessFile file;
public PSTRAFileContent(final File file) throws FileNotFoundException {
this.file = new RandomAccessFile(file, "r");
}
public RandomAccessFile getFile() {
return this.file;
}
public void setFile(final RandomAccessFile file) {
this.file = file;
}
@Override
public void seek(final long index) throws IOException {
this.file.seek(index);
}
@Override
public long getFilePointer() throws IOException {
return this.file.getFilePointer();
}
@Override
public int read() throws IOException {
return this.file.read();
}
@Override
public int read(final byte[] target) throws IOException {
return this.file.read(target);
}
@Override
public byte readByte() throws IOException {
return this.file.readByte();
}
@Override
public void close() throws IOException {
this.file.close();
}
}