java.lang.Object
renderkits.util.Util
- public class Util
- extends java.lang.Object
|
Constructor Summary |
Util()
|
|
Method Summary |
private static void |
_writeDecRef(java.io.Writer out,
char ch)
Writes a character as a decimal escape. |
private static int |
addToBuffer(java.io.Writer out,
char[] buffer,
int bufferIndex,
int bufferLength,
char ch)
Add a character to the buffer, flushing the buffer if the buffer is
full, and returning the new buffer index |
static boolean |
componentIsDisabledOnReadonly(javax.faces.component.UIComponent component)
Utility method for determining if a component is 'disabled' or 'readonly' |
private static int |
flushBuffer(java.io.Writer out,
char[] buffer,
int bufferIndex)
Flush the contents of the buffer to the output stream
and return the reset buffer index |
static javax.faces.convert.Converter |
getConverterForClass(java.lang.Class converterClass)
|
static java.util.logging.Logger |
getLogger(java.lang.String loggerName)
|
static void |
validateEncoding(java.lang.String encoding)
|
static void |
writeAttribute(java.io.Writer out,
char[] buffer,
char[] text)
|
static void |
writeAttribute(java.io.Writer out,
char[] buff,
char[] text,
int start,
int length)
Write a character array attribute. |
static void |
writeAttribute(java.io.Writer out,
char[] buff,
java.lang.String text)
Write a string attribute. |
static void |
writeText(java.io.Writer out,
char[] buffer,
char[] text)
|
static void |
writeText(java.io.Writer out,
char[] buff,
char[] text,
int start,
int length)
Write char array text. |
static void |
writeText(java.io.Writer out,
char[] buff,
java.lang.String text)
Write String text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FACES_LOGGER
public static final java.lang.String FACES_LOGGER
- See Also:
- Constant Field Values
RENDERKIT_LOGGER
public static final java.lang.String RENDERKIT_LOGGER
- See Also:
- Constant Field Values
TAGLIB_LOGGER
public static final java.lang.String TAGLIB_LOGGER
- See Also:
- Constant Field Values
FACES_LOG_STRINGS
public static final java.lang.String FACES_LOG_STRINGS
- See Also:
- Constant Field Values
logger
private static java.util.logging.Logger logger
encodingTestBytes
private static final byte[] encodingTestBytes
Util
public Util()
getLogger
public static java.util.logging.Logger getLogger(java.lang.String loggerName)
componentIsDisabledOnReadonly
public static boolean componentIsDisabledOnReadonly(javax.faces.component.UIComponent component)
- Utility method for determining if a component is 'disabled' or 'readonly'
getConverterForClass
public static javax.faces.convert.Converter getConverterForClass(java.lang.Class converterClass)
validateEncoding
public static void validateEncoding(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
writeAttribute
public static void writeAttribute(java.io.Writer out,
char[] buff,
java.lang.String text)
throws java.io.IOException
- Write a string attribute. Note that this code
is duplicated below for character arrays - change both
places if you make any changes!!!
writeAttribute
public static void writeAttribute(java.io.Writer out,
char[] buffer,
char[] text)
throws java.io.IOException
writeAttribute
public static void writeAttribute(java.io.Writer out,
char[] buff,
char[] text,
int start,
int length)
throws java.io.IOException
- Write a character array attribute. Note that this code
is duplicated above for string - change both places if you make
any changes!!!
writeText
public static void writeText(java.io.Writer out,
char[] buffer,
char[] text)
throws java.io.IOException
writeText
public static void writeText(java.io.Writer out,
char[] buff,
char[] text,
int start,
int length)
throws java.io.IOException
- Write char array text. Note that this code is duplicated below
for Strings - change both places if you make any changes!!!
writeText
public static void writeText(java.io.Writer out,
char[] buff,
java.lang.String text)
throws java.io.IOException
- Write String text. Note that this code is duplicated above for
character arrays - change both places if you make any changes!!!
_writeDecRef
private static void _writeDecRef(java.io.Writer out,
char ch)
throws java.io.IOException
- Writes a character as a decimal escape. Hex escapes are smaller than
the decimal version, but Netscape didn't support hex escapes until
4.7.4.
flushBuffer
private static int flushBuffer(java.io.Writer out,
char[] buffer,
int bufferIndex)
throws java.io.IOException
- Flush the contents of the buffer to the output stream
and return the reset buffer index
addToBuffer
private static int addToBuffer(java.io.Writer out,
char[] buffer,
int bufferIndex,
int bufferLength,
char ch)
throws java.io.IOException
- Add a character to the buffer, flushing the buffer if the buffer is
full, and returning the new buffer index