Пример #1
0
 /// <summary>
 /// Flushes the stream if it's not closed and checks its error state.
 /// </summary>
 /// <returns> <code>true</code> if the print stream has encountered an error,
 ///          either on the underlying output stream or during a format
 ///          conversion. </returns>
 public virtual bool CheckError()
 {
     if (@out != null)
     {
         Flush();
     }
     if (@out is java.io.PrintWriter)
     {
         PrintWriter pw = (PrintWriter)@out;
         return(pw.CheckError());
     }
     else if (PsOut != null)
     {
         return(PsOut.CheckError());
     }
     return(Trouble);
 }