/** * @return Return Archive Record created against current offset. * @throws IOException */ public ArchiveRecord get() throws IOException { return createArchiveRecord(this.in, positionForRecord(in)); }
/** * @return Return Archive Record created against current offset. * @throws IOException */ public ArchiveRecord get() throws IOException { return createArchiveRecord(this.in, positionForRecord(in)); }
/** * @return Return Archive Record created against current offset. * @throws IOException */ public ArchiveRecord get() throws IOException { return createArchiveRecord(this.in, positionForRecord(in)); }
/** * Get record at passed <code>offset</code>. * * @param offset Byte index into file at which a record starts. * @return An Archive Record reference. * @throws IOException */ public ArchiveRecord get(long offset) throws IOException { cleanupCurrentRecord(); long posn = positionForRecord(in); if(offset>=posn) { in.skip(offset-posn); } else { throw new UnsupportedOperationException("no reverse seeking: at "+posn+" requested "+offset); } return createArchiveRecord(this.in, offset); }
/** * Get record at passed <code>offset</code>. * * @param offset Byte index into file at which a record starts. * @return An Archive Record reference. * @throws IOException */ public ArchiveRecord get(long offset) throws IOException { cleanupCurrentRecord(); long posn = positionForRecord(in); if(offset>=posn) { in.skip(offset-posn); } else { throw new UnsupportedOperationException("no reverse seeking: at "+posn+" requested "+offset); } return createArchiveRecord(this.in, offset); }
/** * Get record at passed <code>offset</code>. * * @param offset Byte index into file at which a record starts. * @return An Archive Record reference. * @throws IOException */ public ArchiveRecord get(long offset) throws IOException { cleanupCurrentRecord(); long posn = positionForRecord(in); if(offset>=posn) { in.skip(offset-posn); } else { throw new UnsupportedOperationException("no reverse seeking: at "+posn+" requested "+offset); } return createArchiveRecord(this.in, offset); }