1 package com.artifex.mupdf.fitz; 2 3 import java.io.IOException; 4 5 public interface SeekableStream 6 { 7 int SEEK_SET = 0; /* set file position to offset */ 8 int SEEK_CUR = 1; /* set file position to current location plus offset */ 9 int SEEK_END = 2; /* set file position to EOF plus offset */ 10 seek(long offset, int whence)11 long seek(long offset, int whence) throws IOException; position()12 long position() throws IOException; 13 } 14