Ejemplo n.º 1
0
        public virtual void Rewrite()
        {
            if (this.Rewriteable)
            {
                throw new FitsException("Illegal attempt to rewrite data");
            }

            //FitsUtil.Reposition(input, fileOffset);
            input.Seek(fileOffset, SeekOrigin.Begin);
            Write(input);
            try
            {
                input.Flush();
            }
            catch (IOException e)
            {
                throw new FitsException("Error in Rewrite Flush: " + e);
            }
        }