public void read(InputStream is) throws FitsException {
  if (is instanceof ArrayDataInput) {
    this.dataStr=(ArrayDataInput)is;
  }
 else {
    this.dataStr=new BufferedDataInputStream(is);
  }
  read();
}

public void read ( InputStream is ) throws FitsException { if ( is instanceof ArrayDataInput ) { this . dataStr = ( ArrayDataInput ) is ; } else { this . dataStr = new BufferedDataInputStream ( is ) ; } read ( ) ; }
read a fits file from an inputstream object .
