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

How to use
decode
method
in
org.apache.chemistry.opencmis.commons.impl.Base64

Best Java code snippets using org.apache.chemistry.opencmis.commons.impl.Base64.decode (Showing top 9 results out of 315)

origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Decodes data from Base64 notation, automatically detecting
 * gzip-compressed data and decompressing it.
 * 
 * @param s
 *            the string to decode
 * @return the decoded data
 * @throws java.io.IOException
 *             If there is a problem
 * @since 1.4
 */
public static byte[] decode(String s) throws java.io.IOException {
  return decode(s, NO_OPTIONS);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Decodes data from Base64 notation, automatically detecting
 * gzip-compressed data and decompressing it.
 * 
 * @param s
 *            the string to decode
 * @return the decoded data
 * @throws java.io.IOException
 *             If there is a problem
 * @since 1.4
 */
public static byte[] decode(String s) throws java.io.IOException {
  return decode(s, NO_OPTIONS);
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Low-level access to decoding ASCII characters in the form of a byte
 * array. <strong>Ignores GUNZIP option, if it's set.</strong> This is not
 * generally a recommended method, although it is used internally as part of
 * the decoding process. Special case: if len = 0, an empty array is
 * returned. Still, if you need more speed and reduced memory footprint (and
 * aren't gzipping), consider this method.
 * 
 * @param source
 *            The Base64 encoded data
 * @return decoded data
 * @since 2.3.1
 */
public static byte[] decode(byte[] source) throws java.io.IOException {
  byte[] decoded = null;
  // try {
  decoded = decode(source, 0, source.length, Base64.NO_OPTIONS);
  // } catch( java.io.IOException ex ) {
  // assert false :
  // "IOExceptions only come from GZipping, which is turned off: " +
  // ex.getMessage();
  // }
  return decoded;
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Low-level access to decoding ASCII characters in the form of a byte
 * array. <strong>Ignores GUNZIP option, if it's set.</strong> This is not
 * generally a recommended method, although it is used internally as part of
 * the decoding process. Special case: if len = 0, an empty array is
 * returned. Still, if you need more speed and reduced memory footprint (and
 * aren't gzipping), consider this method.
 * 
 * @param source
 *            The Base64 encoded data
 * @return decoded data
 * @since 2.3.1
 */
public static byte[] decode(byte[] source) throws java.io.IOException {
  byte[] decoded = null;
  // try {
  decoded = decode(source, 0, source.length, Base64.NO_OPTIONS);
  // } catch( java.io.IOException ex ) {
  // assert false :
  // "IOExceptions only come from GZipping, which is turned off: " +
  // ex.getMessage();
  // }
  return decoded;
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

  credentials = new String(Base64.decode(authHeader.substring(x + 1).getBytes(IOUtils.ISO_8859_1)),
      IOUtils.UTF8);
} catch (Exception e) {
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

byte[] objBytes = decode(encodedObject, options);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

byte[] objBytes = decode(encodedObject, options);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

bytes = decode(bytes, 0, bytes.length, options);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

bytes = decode(bytes, 0, bytes.length, options);
org.apache.chemistry.opencmis.commons.implBase64decode

Javadoc

Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.

Popular methods of Base64

  • encodeBytes
    Encodes a byte array into Base64 notation. Example options: GZIP: gzip-compresses object before enc
  • decode4to3
    Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destina
  • decodeFromFile
    Convenience method for reading a base64-encoded file and decoding it. As of v 2.3, if there is a err
  • decodeToObject
    Attempts to decode Base64 data and deserialize a Java Object within. Returns null if there was an e
  • encode3to4
    Encodes up to the first three bytes of array threeBytes and returns a four-byte array in Base64 nota
  • encodeBytesToBytes
    Similar to #encodeBytes(byte[],int,int,int) but returns a byte array instead of instantiating a Stri
  • encodeFromFile
    Convenience method for reading a binary file and base64-encoding it. As of v 2.3, if there is a erro
  • encodeObject
    Serializes an object and returns the Base64-encoded version of that serialized object. As of v 2.3,
  • getAlphabet
    Returns one of the _SOMETHING_ALPHABET byte arrays depending on the options specified. It's possible
  • getDecodabet
    Returns one of the _SOMETHING_DECODABET byte arrays depending on the options specified. It's possibl

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • JButton (javax.swing)
  • JList (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook extensions
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