static public void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException { writeText(out, escapeUnicode, escapeIsocode, buffer, text, 0, text.length); }
/** * Write String text. */ static public void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buff, String text, char[] textBuff) throws IOException { int length = text.length(); if (length >= 16) { text.getChars(0, length, textBuff, 0); writeText(out, escapeUnicode, escapeIsocode, buff, textBuff, 0, length); } else { int buffLength = buff.length; int buffIndex = 0; for (int i = 0; i < length; i++) { char ch = text.charAt(i); buffIndex = writeTextChar(out, escapeUnicode, escapeIsocode, ch, buffIndex, buff, buffLength); } flushBuffer(out, buff, buffIndex); } }
static public void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException { writeText(out, escapeUnicode, escapeIsocode, buffer, text, 0, text.length); }
static public void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException { writeText(out, escapeUnicode, escapeIsocode, buffer, text, 0, text.length); }
static public void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException { writeText(out, escapeUnicode, escapeIsocode, buffer, text, 0, text.length); }
static public void writeText(Writer out, boolean escapeUnicode, boolean escapeIsocode, char[] buffer, char[] text) throws IOException { writeText(out, escapeUnicode, escapeIsocode, buffer, text, 0, text.length); }
static public void writeTextForXML(Writer out, String text, char[] outbuf) throws IOException { char[] textBuffer = new char[128]; int len = text.toString().length(); if (textBuffer.length < len) { textBuffer = new char[len * 2]; } HtmlUtils.writeText(out, true, true, outbuf, text, textBuffer); }
static public void writeTextForXML(Writer out, String text, char[] outbuf) throws IOException { char[] textBuffer = new char[128]; int len = text.toString().length(); if (textBuffer.length < len) { textBuffer = new char[len * 2]; } HtmlUtils.writeText(out, true, true, outbuf, text, textBuffer); }
static public void writeTextForXML(Writer out, String text, char[] outbuf) throws IOException { char[] textBuffer = new char[128]; int len = text.toString().length(); if (textBuffer.length < len) { textBuffer = new char[len * 2]; } HtmlUtils.writeText(out, true, true, outbuf, text, textBuffer); }
static public void writeTextForXML(Writer out, String text, char[] outbuf) throws IOException { char[] textBuffer = new char[128]; int len = text.toString().length(); if (textBuffer.length < len) { textBuffer = new char[len * 2]; } HtmlUtils.writeText(out, true, true, outbuf, text, textBuffer); }
public void writeText(char text) throws IOException { closeStartIfNecessary(); charHolder[0] = text; HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, charHolder); }
public void writeText(char text) throws IOException { closeStartIfNecessary(); charHolder[0] = text; HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, charHolder); }
public void writeText(char text[]) throws IOException { closeStartIfNecessary(); HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, text); }
public void writeText(char text[], int off, int len) throws IOException { closeStartIfNecessary(); HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, text, off, len); }
public void writeText(char text[], int off, int len) throws IOException { closeStartIfNecessary(); HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, text, off, len); }
public void writeText(char text[]) throws IOException { closeStartIfNecessary(); HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, text); }
public void writeText(Object text, String componentPropertyName) throws IOException { if(!textWriter.toString().equals("<!DOCTYPE html>\n")){ String textStr = text.toString(); ensureTextBufferCapacity(textStr); HtmlUtils.writeText(textWriter, escapeUnicode, escapeIso, buffer, textStr, textBuffer); closeStartIfNecessary(); } }
/** * <p>Write a properly escaped single character, If there * is an open element that has been created by a call to * <code>startElement()</code>, that element will be closed first.</p> * <p/> * <p>All angle bracket occurrences in the argument must be escaped * using the &gt; &lt; syntax.</p> * * @param text Text to be written * * @throws IOException if an input/output error occurs */ public void writeText(char text) throws IOException { closeStartIfNecessary(); if (dontEscape) { writer.write(text); } else { charHolder[0] = text; HtmlUtils.writeText(writer, escapeUnicode, escapeIso, buffer, charHolder); } }
public void writeText(Object text, String componentPropertyName) throws IOException { String textStr = text.toString(); ensureTextBufferCapacity(textStr); HtmlUtils.writeText(textWriter, escapeUnicode, escapeIso, buffer, textStr, textBuffer); closeStartIfNecessary(); }
/** * <p>Write a single character, after escaping it properly. If there * is an open element that has been created by a call to * <code>startElement()</code>, that element will be closed first.</p> * * @param text Text to be written * * @exception java.io.IOException if an input/output error occurs */ public void writeText(char text) throws IOException { isEmptyElement = false; closeStartIfNecessary(); writeIndent(); if (dontEscape) { writer.write(text); } else { charHolder[0] = text; HtmlUtils.writeText(writer, buffer, charHolder); } }