Prints a string.

@exception IOException
if an I/O error has occurred
555891
public void print(String s) throws IOException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
        { // 306998.15
            Tr.debug(tc, "print --> " + s);
        }
        if (!_hasWritten && obs != null)
        {
            _hasWritten = true;
            obs.alertFirstWrite();
        }
        int len = s.length();
        if (limit > -1)
        {
            if (total + len > limit)
            {
                len = (int)(limit - total);
                except = new WriteBeyondContentLengthException();
            }
        }

        int off = 0;
        while (len > 0)
        {
            int n = buf.length - count;
            if (n == 0)
            {
                response.setFlushMode(false);
                flushChars();
                response.setFlushMode(true);
                n = buf.length - count;
            }
            if (n > len)
            {
                n = len;
            }

            s.getChars(off, off + n, buf, count);

            count += n;
            total += n;
            off += n;
            len -= n;
        }
        check();
    }
289113
public void print(double d) throws IOException
  {
    String value = Double.toString(d);
    this.output.write(value.getBytes(), 0, value.length());
  }
1186624
private void printSpace(int n) throws IOException
    {
        final java.io.Writer writer = m_writer;
        for (int i = 0; i < n; i++)
        {
            writer.write(' ');
        }

    }
257873
private static void printException(Exception e) {

        if (e instanceof InstallationCancelledException) {
            System.out.println("Installation cancelled.");
            return;
        }

        boolean recognized = false;
        String msg = "ERROR: ";
        if (e instanceof InstallationFailedException) {
            msg += "Installation failed: " + e.getMessage();
            recognized = true;
        } else if (e instanceof OptionValidationException) {
            OptionValidationException ove = (OptionValidationException) e;
            msg +=
                    "Bad value for '" + ove.getOptionId() + "': "
                            + e.getMessage();
            recognized = true;
        }

        if (recognized) {
            System.err.println(msg);
            if (e.getCause() != null) {
                System.err.println("Caused by: ");
                e.getCause().printStackTrace(System.err);
            }
        } else {
            System.err.println(msg + "Unexpected error; installation aborted.");
            e.printStackTrace();
        }
    }
1178970
public void print(boolean b) throws IOException
  {
    if (_startLine)
      printIndent();

    _os.print(b);
    _lastCr = false;
  }
270766
private void print(String level, SAXParseException exception) {
        if (level.equals("warning")) {
            logger.warn("** " + level + ": " + exception.getMessage());
            logger.warn("   URI  = " + exception.getSystemId());
            logger.warn("   line = " + exception.getLineNumber());
        } else {
            logger.error("** " + level + ": " + exception.getMessage());
            logger.error("   URI  = " + exception.getSystemId());
            logger.error("   line = " + exception.getLineNumber());
        }
    }
631507
private void printToStdout(InputStream in) throws IOException {
    try {
      IOUtils.copyBytes(in, System.out, getConf(), false);
    } finally {
      in.close();
    }
  }
1192891
public void print(char ch) throws IOException
  {
    if (_startLine)
      printIndent();

    if (ch == '\r') {
      _destLine++;
    } else if (ch == '\n' && !_lastCr)
      _destLine++;

    _lastCr = ch == '\r';

    _os.print(ch);
  }
907488
public void printLenString(String v)
        throws IOException
    {
        if (v == null) {
            os.write(0);
            os.write(0);
        }
        else {
            int len = v.length();
            os.write(len >> 8);
            os.write(len);

            printString(v, 0, len);
        }
    }
25068
@Override
    public void print(char c) throws IOException {
	boolean isWS = Character.isWhitespace(c);
	if (isWS) {
	    if (isFirstChar) // ignore all WS before non-WS content
		return;
	    if (c == CHAR_RETURN) // ignore Carriage-Return chars
		return;
	    if (sb.length() > 0) {
		printBuffer(); // buffer should never contain WS so flush it
		lastChar = (c == CHAR_NL) ? CHAR_NL : c;
		super.print(lastChar);
		return;
	    }
	}

	isFirstChar = false;
	if (c == CHAR_GT && sb.length() > 0) printBuffer(); // buffer should never contain ">" so flush it

	if (isWS || !addToBuffer(c)) {
	    if (depthSum == 0) { // we're not in a WS-preserving tag; suppress whitespace
		if (isWS) { // this char is WS
		    if (lastChar == CHAR_NL) // lastChar was NL; discard this WS char
			return;
		    if (c != CHAR_NL) { // this WS char is not NL
			if (Character.isWhitespace(lastChar)) return; // lastChar was WS but Not NL; discard this WS char
		    }
		}
	    }
	    lastChar = c; // remember c as lastChar and write it to output stream
	    super.print(c);
	}
    }
517849
public void println() throws IOException
    {
        if(this._listener!= null &&  !checkIfCalledFromWLonError()){
            
            _outHelper.write_NonBlocking(CRLF, 0, 2);
        }
        else {
            this.write(CRLF, 0, 2);
        }

    }
485413
public void printString(String v, int offset, int length)
        throws IOException
    {
        for (int i = 0; i < length; i++) {
            char ch = v.charAt(i + offset);

            if (ch < 0x80)
                os.write(ch);
            else if (ch < 0x800) {
                os.write(0xc0 + ((ch >> 6) & 0x1f));
                os.write(0x80 + (ch & 0x3f));
            }
            else {
                os.write(0xe0 + ((ch >> 12) & 0xf));
                os.write(0x80 + ((ch >> 6) & 0x3f));
                os.write(0x80 + (ch & 0x3f));
            }
        }
    }
108210
public void print(Object obj) throws IOException {

        if (mOut != null) {
            // static Tea!
            mOut.write(toString(obj));
        }
    }
1168199
public static void print(PrintWriter pw, String value) {
	pw.write(value + "\n");
	pw.flush();
    }
642055
public void print(String value) throws IOException
    {
        if(this._listener!= null &&  !checkIfCalledFromWLonError()){
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "non blocking print String , WriteListener enabled: " + this._listener);
            if(value!=null){
                this.print_NonBlocking(value);
            }            
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())    
                Tr.debug(tc, "print String");
            super.print(value);
        }
    }
629528
final public void print(String s)
  {
    if (s == null)
      write(_nullChars, 0, _nullChars.length);
    else
      write(s, 0, s.length());
  }
79680
public void print(Writer out) throws IOException{
		for (int i = 0; i < sentence.size(); ++i){
			sentence.get(i).print(out);
		}
		out.write("\n");
	}