Java Base64 Decode base64decodebyte(String txt)

Here you can find the source of base64decodebyte(String txt)

Description

basedecodebyte

License

LGPL

Declaration

public static byte[] base64decodebyte(String txt) 

Method Source Code

//package com.java2s;
/**/*  w w  w  . java  2s.com*/
 * Converts a line of text into an array of lower case words using a
 * BreakIterator.wordInstance(). <p>
 *
 * This method is under the Jive Open Source Software License and was
 * written by Mark Imbriaco.
 *
 * @param text a String of text to convert into an array of words
 * @return text broken up into an array of words.
 */

import java.io.IOException;

public class Main {
    public static byte[] base64decodebyte(String txt) {
        byte[] buf = null;
        if (txt != null && txt.length() > 0) {
            try {
                buf = new sun.misc.BASE64Decoder().decodeBuffer(txt);
            } catch (IOException ex) {
            }
        }
        return buf;
    }
}

Related

  1. base64decode(String str)
  2. base64Decode(String string)
  3. base64decode(String string)
  4. base64decode(String strMi)
  5. base64decode(String text)
  6. base64Decoder(char[] src, int start)
  7. base64decodeString(String inputString)
  8. decode(String base64)
  9. decode(String base64Code)