/** * Seeks to the specified location in the storage file. * * @param offset * The file offset to seek to. */ private void seek(long offset) { try { randomFile.seek(offset); } catch (IOException e) { throw new OsmosisRuntimeException("Unable to seek to position " + offset + " in the storage file.", e); } }
/** * Seeks to the specified location in the storage file. * * @param offset * The file offset to seek to. */ private void seek(long offset) { try { randomFile.seek(offset); } catch (IOException e) { throw new OsmosisRuntimeException("Unable to seek to position " + offset + " in the storage file.", e); } }
byte validFlag; fileInStream.seek(offset); validFlag = dataInStream.readByte();
byte validFlag; fileInStream.seek(offset); validFlag = dataInStream.readByte();