public final long getStreamPosition() throws IOException { checkOpen(); return position; }
public final long getFlushedPosition() throws IOException { checkOpen(); return flushedPosition; }
public final void seek(long pPosition) throws IOException { checkOpen(); // TODO: This is correct according to javax.imageio (IndexOutOfBoundsException), // but it's inconsistent with reset that throws IOException... if (pPosition < flushedPosition) { throw new IndexOutOfBoundsException("position < flushedPosition!"); } seekImpl(pPosition); position = pPosition; }
public final void reset() throws IOException { checkOpen(); if (!markedPositions.isEmpty()) { long newPos = markedPositions.pop(); // TODO: This is correct according to javax.imageio (IOException), // but it's inconsistent with seek that throws IndexOutOfBoundsException... if (newPos < flushedPosition) { throw new IOException("Previous marked position has been discarded!"); } seek(newPos); } }
@Override public final void close() throws IOException { checkOpen(); closed = true; closeImpl(); }
public final void flushBefore(long pPosition) throws IOException { if (pPosition < flushedPosition) { throw new IndexOutOfBoundsException("position < flushedPosition!"); } if (pPosition > getStreamPosition()) { throw new IndexOutOfBoundsException("position > getStreamPosition()!"); } checkOpen(); flushBeforeImpl(pPosition); flushedPosition = pPosition; }
public final long getFlushedPosition() throws IOException { checkOpen(); return flushedPosition; }
public final long getStreamPosition() throws IOException { checkOpen(); return position; }
public final long getFlushedPosition() throws IOException { checkOpen(); return mFlushedPosition; }
public final long getStreamPosition() throws IOException { checkOpen(); return mPosition; }
public final void seek(long pPosition) throws IOException { checkOpen(); // TODO: This is correct according to javax.imageio (IndexOutOfBoundsException), // but it's inconsistent with reset that throws IOException... if (pPosition < flushedPosition) { throw new IndexOutOfBoundsException("position < flushedPosition!"); } seekImpl(pPosition); position = pPosition; }
public final void seek(long pPosition) throws IOException { checkOpen(); // TODO: This is correct according to javax.imageio (IndexOutOfBoundsException), // but it's inconsistent with reset that throws IOException... if (pPosition < mFlushedPosition) { throw new IndexOutOfBoundsException("position < flushedPosition!"); } seekImpl(pPosition); mPosition = pPosition; }
@Override public final void close() throws IOException { checkOpen(); mClosed = true; closeImpl(); }
public final void reset() throws IOException { checkOpen(); if (!markedPositions.isEmpty()) { long newPos = markedPositions.pop(); // TODO: This is correct according to javax.imageio (IOException), // but it's inconsistent with seek that throws IndexOutOfBoundsException... if (newPos < flushedPosition) { throw new IOException("Previous marked position has been discarded!"); } seek(newPos); } }
@Override public final void close() throws IOException { checkOpen(); closed = true; closeImpl(); }
public final void reset() throws IOException { checkOpen(); if (!mMarkedPositions.isEmpty()) { long newPos = mMarkedPositions.pop(); // TODO: This is correct according to javax.imageio (IOException), // but it's inconsistent with seek that throws IndexOutOfBoundsException... if (newPos < mFlushedPosition) { throw new IOException("Previous marked position has been discarded!"); } seek(newPos); } }
public final void flushBefore(long pPosition) throws IOException { if (pPosition < flushedPosition) { throw new IndexOutOfBoundsException("position < flushedPosition!"); } if (pPosition > getStreamPosition()) { throw new IndexOutOfBoundsException("position > getStreamPosition()!"); } checkOpen(); flushBeforeImpl(pPosition); flushedPosition = pPosition; }
public final void flushBefore(long pPosition) throws IOException { if (pPosition < mFlushedPosition) { throw new IndexOutOfBoundsException("position < flushedPosition!"); } if (pPosition > getStreamPosition()) { throw new IndexOutOfBoundsException("position > getStreamPosition()!"); } checkOpen(); flushBeforeImpl(pPosition); mFlushedPosition = pPosition; }