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

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

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

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

/**
 * Serializes an object and returns the Base64-encoded version of that
 * serialized object.
 * 
 * <p>
 * As of v 2.3, if the object cannot be serialized or there is another
 * error, the method will throw an java.io.IOException. <b>This is new to
 * v2.3!</b> In earlier versions, it just returned a null value, but in
 * retrospect that's a pretty poor way to handle it.
 * </p>
 * 
 * The object is not GZip-compressed before being encoded.
 * 
 * @param serializableObject
 *            The object to encode
 * @return The Base64-encoded object
 * @throws java.io.IOException
 *             if there is an error
 * @throws NullPointerException
 *             if serializedObject is null
 * @since 1.4
 */
public static String encodeObject(java.io.Serializable serializableObject) throws java.io.IOException {
  return encodeObject(serializableObject, NO_OPTIONS);
} // end encodeObject
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Serializes an object and returns the Base64-encoded version of that
 * serialized object.
 * 
 * <p>
 * As of v 2.3, if the object cannot be serialized or there is another
 * error, the method will throw an java.io.IOException. <b>This is new to
 * v2.3!</b> In earlier versions, it just returned a null value, but in
 * retrospect that's a pretty poor way to handle it.
 * </p>
 * 
 * The object is not GZip-compressed before being encoded.
 * 
 * @param serializableObject
 *            The object to encode
 * @return The Base64-encoded object
 * @throws java.io.IOException
 *             if there is an error
 * @throws NullPointerException
 *             if serializedObject is null
 * @since 1.4
 */
public static String encodeObject(java.io.Serializable serializableObject) throws java.io.IOException {
  return encodeObject(serializableObject, NO_OPTIONS);
} // end encodeObject
org.apache.chemistry.opencmis.commons.implBase64encodeObject

Javadoc

Serializes an object and returns the Base64-encoded version of that serialized object.

As of v 2.3, if the object cannot be serialized or there is another error, the method will throw an java.io.IOException. This is new to v2.3! In earlier versions, it just returned a null value, but in retrospect that's a pretty poor way to handle it.

The object is not GZip-compressed before being encoded.

Popular methods of Base64

  • encodeBytes
    Encodes a byte array into Base64 notation. Example options: GZIP: gzip-compresses object before enc
  • decode
    Low-level access to decoding ASCII characters in the form of a byte array. Ignores GUNZIP option, i
  • 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
  • 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

  • Finding current android device location
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Best plugins for Eclipse
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