org.ajax4jsf.javascript

## Class JSEncoder

- java.lang.Object
- - org.ajax4jsf.javascript.JSEncoder

-     public class JSEncoder
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JSEncoder()` Create a new instance of this `XMLEncoder`.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `compile(char c)` Return true or false whether this encoding/format can encode the specified character or not.
    `char[]` | `encode(char c)` Return an array of characters representing the encoding for the specified character.
    `static CharBuffer` | `encodeCharBuffer(char c)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JSEncoder

          public JSEncoder()

      Create a new instance of this `XMLEncoder`.

  - ### Method Detail

    - #### compile

          public static boolean compile(char c)

      Return true or false whether this encoding/format can encode the specified character or not.

      This method will return true for the following character range:
      `\b | \f | \t | \r | \n | " | \ | / | [#x20-#xD7FF] | [#xE000-#xFFFD]`

      See Also:
        W3C XML 1.0 , JSON.org

    - #### encodeCharBuffer

          public static CharBuffer encodeCharBuffer(char c)

    - #### encode

          public char[] encode(char c)

      Return an array of characters representing the encoding for the specified character.

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.