Read 2-byte short with Intel (little-endian) byte order (note: RandomAccessFile.readShort has other byte order than AVI)
()
| 1422 | /** Read 2-byte short with Intel (little-endian) byte order |
| 1423 | * (note: RandomAccessFile.readShort has other byte order than AVI) */ |
| 1424 | final short readShort() throws IOException { |
| 1425 | int low = raFile.readByte() & 0xff; |
| 1426 | int high = raFile.readByte() & 0xff; |
| 1427 | return (short) (high << 8 | low); |
| 1428 | } |
| 1429 | |
| 1430 | /** Read type of next chunk that is not JUNK. |
| 1431 | * Returns type (or 0 if no non-JUNK chunk until endPosition) */ |
no test coverage detected