Exemplo n.º 1
0
        /**
         * Flushes this stream and returns the value of the error flag.
         *
         * @return {@code true} if either an {@code IOException} has been thrown
         *         previously or if {@code setError()} has been called;
         *         {@code false} otherwise.
         * @see #setError()
         */
        public override bool checkError()
        {
            OutputStream delegateJ = outJ;

            if (delegateJ == null)
            {
                return(ioError);
            }

            flush();
            return(ioError || delegateJ.checkError());
        }