Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.common.text
Class FastURLEncoder

    java.lang.Object
      org.jboss.portal.common.text.AbstractCharEncoder
          org.jboss.portal.common.text.FastURLEncoder

All Implemented Interfaces:
  CharEncoder

    public class FastURLEncoder

extends AbstractCharEncoder

An implementation based on a table for lookups.

Version:
  $Revision: 7228 $
Author:
  Julien Viet

Constructor Summary
`FastURLEncoder(CharToByteEncoder encoder)`

Method Summary
`void` | `encode(char c, CharWriter writer)`
`void` | `encode(java.lang.String s, java.io.Writer out)`
`static FastURLEncoder` | `getUTF8Instance()`
`protected void` | `safeEncode(char[] chars, int off, int len, CharWriter writer)`
`java.lang.String` | `toString()`

Methods inherited from class org.jboss.portal.common.text.AbstractCharEncoder
`encode, encode, encode, encode`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### FastURLEncoder

    public FastURLEncoder(CharToByteEncoder encoder)
                   throws java.lang.IllegalArgumentException

Throws:
  `java.lang.IllegalArgumentException`

Method Detail

### getUTF8Instance

    public static FastURLEncoder getUTF8Instance()

### encode

    public void encode(char c,
                       CharWriter writer)

  Specified by:
    `encode` in interface `CharEncoder`
  Overrides:
    `encode` in class `AbstractCharEncoder`
  Parameters:
    `c` - the char to encode
    `writer` - the writer to use

### safeEncode

    protected void safeEncode(char[] chars,
                              int off,
                              int len,
                              CharWriter writer)

  Specified by:
    `safeEncode` in class `AbstractCharEncoder`

### encode

    public void encode(java.lang.String s,
                       java.io.Writer out)
                throws java.lang.IllegalArgumentException,
                       UndeclaredIOException

  Throws:
    `java.lang.IllegalArgumentException`
    `UndeclaredIOException`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008. All Rights Reserved.