Class/Object

org.parboiled2.util

Base64

Related Docs: object Base64 | package util

Permalink

class Base64 extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Base64
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Base64(alphabet: String)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CA: Array[Char]

    Permalink
  5. val IA: Array[Int]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def decode(sArr: Array[Char]): Array[Byte]

    Permalink

    Decodes a BASE64 encoded char array.

    Decodes a BASE64 encoded char array. All illegal characters will be ignored and can handle both arrays with and without line separators.

    sArr

    The source array. null or length 0 will return an empty array.

    returns

    The decoded array of bytes. May be of length 0. Will be null if the legal characters (including '=') isn't divideable by 4. (I.e. definitely corrupted).

  9. def decodeFast(sArr: Array[Char]): Array[Byte]

    Permalink

    Decodes a BASE64 encoded char array that is known to be resonably well formatted.

    Decodes a BASE64 encoded char array that is known to be resonably well formatted. The method is about twice as fast as #decode(char[]). The preconditions are:
    + The array must have a line length of 76 chars OR no line separators at all (one line).
    + Line separator must be "\r\n", as specified in RFC 2045 + The array must not contain illegal characters within the encoded string
    + The array CAN have illegal characters at the beginning and end, those will be dealt with appropriately.

    sArr

    The source array. Length 0 will return an empty array. null will throw an exception.

    returns

    The decoded array of bytes. May be of length 0.

  10. def encodeToChar(sArr: Array[Byte], lineSep: Boolean): Array[Char]

    Permalink

    Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.

    Encodes a raw byte array into a BASE64 char[] representation i accordance with RFC 2045.

    sArr

    The bytes to convert. If null or length 0 an empty array will be returned.

    lineSep

    Optional "\r\n" after 76 characters, unless end of file.
    No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a little faster.

    returns

    A BASE64 encoded array. Never null.

  11. def encodeToString(sArr: Array[Byte], lineSep: Boolean): String

    Permalink

    Encodes a raw byte array into a BASE64 String representation in accordance with RFC 2045.

    Encodes a raw byte array into a BASE64 String representation in accordance with RFC 2045.

    sArr

    The bytes to convert. If null or length 0 an empty array will be returned.

    lineSep

    Optional "\r\n" after 76 characters, unless end of file.
    No line separator will be in breach of RFC 2045 which specifies max 76 per line but will be a little faster.

    returns

    A BASE64 encoded array. Never null.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. val fillChar: Char

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def getAlphabet: Array[Char]

    Permalink
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped