org.jboss.netty.handler.codec.base64

## Class Base64

- java.lang.Object
- - org.jboss.netty.handler.codec.base64.Base64

-     public final class Base64
      extends Object

  Utility class for `ChannelBuffer` that encodes and decodes to and from Base64 notation.

  The encoding and decoding algorithm in this class has been derived from Robert Harder's Public Domain Base64 Encoder/Decoder.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ChannelBuffer` | `decode(ChannelBuffer src)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, Base64Dialect dialect)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, int off, int len)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, int off, int len, Base64Dialect dialect)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `decode(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, Base64Dialect dialect)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, Base64Dialect dialect, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, boolean breakLines)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, boolean breakLines, Base64Dialect dialect)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, boolean breakLines, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, Base64Dialect dialect)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, Base64Dialect dialect, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, boolean breakLines)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, boolean breakLines, Base64Dialect dialect, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, boolean breakLines, ChannelBufferFactory bufferFactory)`
    `static ChannelBuffer` | `encode(ChannelBuffer src, int off, int len, ChannelBufferFactory bufferFactory)`

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

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

- - ### Method Detail

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             Base64Dialect dialect)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             Base64Dialect dialect,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             boolean breakLines)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             boolean breakLines,
                             Base64Dialect dialect)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             boolean breakLines,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             boolean breakLines,
                             Base64Dialect dialect,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             Base64Dialect dialect)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             Base64Dialect dialect,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             boolean breakLines)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             boolean breakLines,
                             Base64Dialect dialect)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             boolean breakLines,
                             ChannelBufferFactory bufferFactory)

    - #### encode

          public static ChannelBuffer encode(ChannelBuffer src,
                             int off,
                             int len,
                             boolean breakLines,
                             Base64Dialect dialect,
                             ChannelBufferFactory bufferFactory)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             Base64Dialect dialect)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             ChannelBufferFactory bufferFactory)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             Base64Dialect dialect,
                             ChannelBufferFactory bufferFactory)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             int off,
                             int len)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             int off,
                             int len,
                             Base64Dialect dialect)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             int off,
                             int len,
                             ChannelBufferFactory bufferFactory)

    - #### decode

          public static ChannelBuffer decode(ChannelBuffer src,
                             int off,
                             int len,
                             Base64Dialect dialect,
                             ChannelBufferFactory bufferFactory)

Copyright © 2008-2012 The Netty Project. All Rights Reserved.