+
+ private DataInput fd;
+ private Object image;
+ private void seek(long l) throws IOException {
+ if (image instanceof RandomAccessFile) {
+ ((RandomAccessFile)image).seek(l);
+ } else if (image instanceof byte[]) {
+ ByteArrayInputStream bais = new ByteArrayInputStream((byte[])image);
+ bais.skip(l);
+ fd = new DataInputStream(bais);
+ }
+ }