/// <summary>Read a FITS file from an InputStream object.</summary> /// <param name="is">The InputStream stream whence the FITS information is found.</param> public virtual void Read(Stream is_Renamed) { bool newIS = false; if (is_Renamed is ArrayDataIO) { dataStr = (ArrayDataIO)is_Renamed; } else { dataStr = new BufferedDataStream(is_Renamed); } Read(); if (newIS) { dataStr.Close(); dataStr = null; } }