Tabnine Logo
Base64.decode
Code IndexAdd Tabnine to your IDE (free)

How to use
decode
method
in
com.novoda.Base64

Best Java code snippets using com.novoda.Base64.decode (Showing top 5 results out of 315)

origin: novoda/android-demos

/**
 * Decodes Base64 content in byte array format and returns
 * the decoded byte array.
 *
 * @param source The Base64 encoded data
 * @return decoded data
 * @since 1.3
 * @throws Base64DecoderException
 */
public static byte[] decode(byte[] source) throws Base64DecoderException {
 return decode(source, 0, source.length);
}
origin: novoda/android-demos

/**
 * Decodes web safe Base64 content in byte array format and returns
 * the decoded byte array.
 * Web safe encoding uses '-' instead of '+', '_' instead of '/'
 *
 * @param source the Base64 encoded data
 * @param off    the offset of where to begin decoding
 * @param len    the length of characters to decode
 * @return decoded data
 */
public static byte[] decodeWebSafe(byte[] source, int off, int len)
  throws Base64DecoderException {
 return decode(source, off, len, WEBSAFE_DECODABET);
}
origin: novoda/android-demos

/**
 * Decodes Base64 content in byte array format and returns
 * the decoded byte array.
 *
 * @param source the Base64 encoded data
 * @param off    the offset of where to begin decoding
 * @param len    the length of characters to decode
 * @return decoded data
 * @since 1.3
 * @throws Base64DecoderException
 */
public static byte[] decode(byte[] source, int off, int len)
  throws Base64DecoderException {
 return decode(source, off, len, DECODABET);
}
origin: novoda/android-demos

/**
 * Decodes data from Base64 notation.
 *
 * @param s the string to decode (decoded in default encoding)
 * @return the decoded data
 * @since 1.4
 */
public static byte[] decode(String s) throws Base64DecoderException {
 byte[] bytes = s.getBytes();
 return decode(bytes, 0, bytes.length);
}
origin: novoda/android-demos

  private byte[] getDecode(String encryption_subject) throws CryptException {

    try {
      return Base64.decode(encryption_subject);
    } catch (Base64DecoderException e) {
      throw new CryptException(e);
    }
  }
}
com.novodaBase64decode

Javadoc

Decodes data from Base64 notation.

Popular methods of Base64

  • decode4to3
    Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destina
  • decodeWebSafe
    Decodes web safe Base64 content in byte array format and returns the decoded byte array. Web safe en
  • encode
    Encodes a byte array into Base64 notation.
  • encode3to4
    Encodes up to three bytes of the array source and writes the resulting four Base64 bytes to destinat

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JButton (javax.swing)
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now