blob: e2eff52304edd2a78b4565e0cfc6c24f8483d6df (
plain)
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
|
package dslog;
import java.io.IOException;
import java.io.InputStream;
import java.lang.UnsupportedOperationException;
class DseventsReader {
private final InputStream reader;
public final int version;
public DseventsReader(InputStream reader) throws IOException {
this.reader = reader;
this.version = Read.i32(reader);
switch (this.version) {
case 0: // ????-????
throw new UnsupportedOperationException("TODO");
case 1: // ????-2015
throw new UnsupportedOperationException("TODO");
default:
throw new UnsupportedOperationException("Unrecognized PDPLOG version: "+this.version);
}
}
public void close() throws IOException {
reader.close();
}
}
|