Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces Core API 4.3.1.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.ajax4jsf.javascript
Class JSEncoder

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

    public class JSEncoder

extends Object

Constructor Summary
`JSEncoder()` Create a new instance of this `XMLEncoder`.

Method Summary
`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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces Core API 4.3.1.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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