@Override public void close() throws IOException { // Suppress interrupts while we close. final boolean isInterrupted = Thread.interrupted(); mAbort = true; try { flushReadAhead(); super.close(); } finally { if (isInterrupted) Thread.currentThread().interrupt(); } } /**
@Override protected void prepareForSeek() { flushReadAhead(); super.prepareForSeek(); }
@Override protected void prepareForSeek() { flushReadAhead(); super.prepareForSeek(); }
@Override public void close() throws IOException { // Suppress interrupts while we close. final boolean isInterrupted = Thread.interrupted(); mAbort = true; try { flushReadAhead(); super.close(); } finally { if (isInterrupted) Thread.currentThread().interrupt(); } } /**