else if (ch == 0xff) { if (_is.read() != 0xd8) return false;  TempStream ts = new TempStream();  WriteStream ws = new WriteStream(ts); ws.write(0xff); ws.write(0xd8); _is.writeToStream(ws); ws.close();  _jpegHead = ts.getHead(); _is.close();  _is = new ReadStream(); ts.openRead(_is);  parseJPEG();  return true; }
  private boolean parseImage()    throws IOException  {    int ch = _is.read();    if (ch == 'G') {      if (_is.read() != 'I' ||	  _is.read() != 'F' ||	  _is.read() != '8' ||	  _is.read() != '7' ||	  _is.read() != 'a')	return false;      return parseGIF();    }    return false;  }