(OutputStream out, int v)
| 198 | |
| 199 | |
| 200 | public static void writeInt2(OutputStream out, int v) throws IOException { |
| 201 | byte[] b2 = new byte[2]; |
| 202 | putInt2(b2, 0, v); |
| 203 | out.write(b2); |
| 204 | } |
| 205 | public static void putInt2(byte[] data, int offset, int v) { |
| 206 | int i = offset; |
| 207 | data[i++] = (byte)((v >>> 0) & 0xFF); |