added readInt() method.
@@ -129,4 +129,7 @@ | ||
129 | 129 | return true; |
130 | 130 | } |
131 | 131 | |
132 | + public int readInt() throws IOException { | |
133 | + return getInputStream().read(); | |
134 | + } | |
132 | 135 | } |
@@ -36,6 +36,7 @@ | ||
36 | 36 | */ |
37 | 37 | package jp.digitalmuseum.connector; |
38 | 38 | |
39 | +import java.io.IOException; | |
39 | 40 | import java.io.InputStream; |
40 | 41 | |
41 | 42 |
@@ -50,4 +51,5 @@ | ||
50 | 51 | public boolean write(byte b); |
51 | 52 | public boolean write(byte[] b); |
52 | 53 | public InputStream getInputStream(); |
54 | + public int readInt() throws IOException; | |
53 | 55 | } |