/*
@see javax.servlet.ServletOutputStream#print(java.lang.String)
325881
@Override
    public void print(String s) throws IOException {
        //TODO this is wrong for encoding
        byte[] data = (null == s) ? "null".getBytes() : s.getBytes();
        this.output.write(data, 0, data.length);
    }
1329840
private synchronized void print(String output) {
        if (generateOneDoc) 
            writer.print(output);
        else 
            writer.println(output);
    }
517849
public void println() throws IOException
    {
        if(this._listener!= null &&  !checkIfCalledFromWLonError()){
            
            _outHelper.write_NonBlocking(CRLF, 0, 2);
        }
        else {
            this.write(CRLF, 0, 2);
        }

    }
1138008
@Override
    public int print(
        ChronoDisplay formattable,
        Appendable buffer,
        AttributeQuery attributes,
        Set<ElementPosition> positions, // optional
        boolean quickPath
    ) throws IOException {

        if (this.attribute != null) {
            char literal = attributes.get(this.attribute, null).charValue();
            buffer.append(literal);
            return 1;
        } else if (this.multi == null) {
            buffer.append(this.single);
            return 1;
        } else {
            buffer.append(this.multi);
            return this.multi.length();
        }

    }
713895
public void println(String s) throws IOException 
    {
         if (s!=null) write(s.getBytes());     
         write(IO.CRLF_BYTES);
    }
105262
public void println(boolean x) {
        if (ivSuppress == true)
            return;
        if (x == true)
            doPrintLine(svTrue);
        else
            doPrintLine(svFalse);
    }
949114
public void println(final String str) throws IOException {
        this.writer.print(str);
        this.writer.print("\r\n");
        this.writer.flush();
    }
374333
public void print(@NonNull PrintStream stream) {
      String horizontalBar = StringUtils.repeat("─", longestCell);
      String hline = middleCMBar(horizontalBar, longestRow);
      longestRow = Math.max(longestRow, header.size());

      if (!StringUtils.isNullOrBlank(title)) {
         stream.println(
               StringUtils.center(title, (longestCell * longestRow) + longestRow + 1)
                       );
      }

      stream.printf("┌%s", horizontalBar);
      for (int i = 1; i < longestRow; i++) {
         stream.printf("┬%s", horizontalBar);
      }
      stream.println("┐");

      if (header.size() > 0) {
         printRow(stream, header, longestCell, longestRow);
         stream.println(bar(StringUtils.repeat("═", longestCell), "╞", "╡", "╪", header.size()));
      }

      for (int r = 0; r < content.size(); r++) {
         printRow(stream, content.get(r), longestCell, longestRow);
         if (r + 1 < content.size()) {
            stream.println(hline);
         }
      }

      if (!footer.isEmpty()) {
         stream.println(bar(StringUtils.repeat("═",longestCell), "╞", "╡", "╪", header.size()));
         for (int r = 0; r < footer.size(); r++) {
            printRow(stream, footer.get(r), longestCell, longestRow);
            if (r + 1 < footer.size()) {
               stream.println(hline);
            }
         }
      }


      stream.printf("└%s", horizontalBar);
      for (int i = 1; i < longestRow; i++) {
         stream.printf("┴%s", horizontalBar);
      }
      stream.println("┘");


   }
330063
public void printJavaString(String s) throws IOException
  {
    for (int i = 0; i < s.length(); i++) {
      char ch = s.charAt(i);

      switch (ch) {
      case '\\':
        _os.print("\\\\");
        break;
      case '\n':
        _os.print("\\n");
        break;
      case '\r':
        _os.print("\\r");
        break;
      case '"':
        _os.print("\\\"");
        break;
      default:
        _os.print(ch);
      }
    }
  }
627075
protected void println(String line) {
        if (output instanceof PrintStream) {
            ((PrintStream) output).println(line);
        } else {
            ((PrintWriter) output).println(line);
        }
    }
116575
@Override
    public void println(String s) throws IOException {
        print(s);
        this.output.write(CRLF, 0, 2);
    }
783808
final public void print(Object v)
  {
    if (v == null)
      write(_nullChars, 0, _nullChars.length);
    else {
      String s = v.toString();
      
      write(s, 0, s.length());
    }
  }
933557
public void print(int i) throws IOException
  {
    String value = Integer.toString(i);
    this.output.write(value.getBytes(), 0, value.length());
  }
942856
static void print(Object object,java.io.PrintWriter printWriter) {
    if (object instanceof Printable) {
      ((Printable)object).print(printWriter);
    } else {
      printWriter.print(object);
    } // if (object instanceof Printable).

  }
1168199
public static void print(PrintWriter pw, String value) {
	pw.write(value + "\n");
	pw.flush();
    }
509657
public void println(char c) throws IOException
    {  

        if(this._listener!= null &&  !checkIfCalledFromWLonError()){
            
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "non blocking println char , WriteListener enabled: " + this._listener);
            this.println_NonBlocking(Character.toString(c));
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "println char");
            super.println(c);
        }
    }
450143
public void print(int w, int d)
    {
        print(new PrintWriter(System.out, true), w, d);
    }