Code example for BufferedInputStream

Methods: reset, skip

0
					(buf[1]&0xff) <<  8 |
					(buf[0]&0xff);
		} 
 
		private void seek(int pos) throws IOException {
			reader.reset();
			reader.skip(pos);
		} 
 
		private byte[] getTranslatedStringAt(int idx) throws IOException {
			seek(offsetTranslatedStrings + idx*8);
			int length = readIntLE();
			int offset = readIntLE();
			seek(offset);
			byte[] result = new byte[length];
			reader.read(result, 0, length);
			return result;
		} 
 
		private int compare(byte[] bytes, int idx) throws IOException {
			seek(offsetOriginalStrings + idx*8);