162163164165166167168169170
{ nextpos = nextpos + segment.bytesRemaining(); } catch (IOException e) { throw new FSReadError(e, path); } return segment; }
246247248249250251252253
{ return new File(filename).getCanonicalPath(); } catch (IOException e) { throw new FSReadError(e, filename); } }
258259260261262263264265
{ return file.getCanonicalPath(); } catch (IOException e) { throw new FSReadError(e, file); } }
301302303304305306307308
{ return Math.max(Math.max(current, out.length()), bufferOffset + validBufferBytes); } catch (IOException e) { throw new FSReadError(e, getPath()); } }
359360361362363364365366367368
{ out.seek(current); } catch (IOException e) { throw new FSReadError(e, getPath()); } resetBuffer(); }
8788899091929394
{ return out.getFilePointer(); } catch (IOException e) { throw new FSReadError(e, getPath()); } }
216217218219220221222223224225226
{ throw new CorruptSSTableException(new CorruptBlockException(getPath(), chunkOffset, chunkSize), getPath()); } catch (IOException e) { throw new FSReadError(e, getPath()); } checksum.reset(); // reset buffer
244245246247248249250251252
{ out.seek(chunkOffset); } catch (IOException e) { throw new FSReadError(e, getPath()); } } }
155156157158159160161162
return offsets; } catch (IOException e) { throw new FSReadError(e, indexFilePath); } }
279280281282283284285286287288289
{ currentPosition = getFilePointer(); } catch (IOException e) { throw new FSReadError(e, filePath); } try { // seek back to the data length position