code: private static SeekableInputStream create(final FileInputStream input) {
      return new SeekableInputStream(input) {
        @Override
        public void seek(long pos) throws IOException {
          input.getChannel().position(pos);
        }
  
        @Override
        public long getPos() throws IOException {
          return input.getChannel().position();
        }
  
        @Override
        public boolean seekToNewSource(long targetPos) throws IOException {
          return false;
        }
      };
    }
docs: Creates a {@link SeekableInputStream} from the given {@link java.io.FileInputStream}.