(OutputStream out, int v)
| 266 | |
| 267 | |
| 268 | public static void writeInt2BE(OutputStream out, int v) throws IOException { |
| 269 | byte[] b2 = new byte[2]; |
| 270 | putInt2BE(b2, 0, v); |
| 271 | out.write(b2); |
| 272 | } |
| 273 | public static void putInt2BE(byte[] data, int offset, int v) { |
| 274 | int i = offset; |
| 275 | data[i+1] = (byte)((v >>> 0) & 0xFF); |