Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


oracle.adf.view.rich.util
Class SerializationUtils

java.lang.Object
  extended by oracle.adf.view.rich.util.SerializationUtils


public class SerializationUtils
extends java.lang.Object

This set of utility class will help us out with various types of serialization tasks..


Method Summary
static java.lang.Object fromByteArray(byte[] b)
           
static java.lang.Object fromByteArray(byte[] b, boolean compress)
           
static java.lang.Object fromString(java.lang.String s)
           
static java.lang.Object fromString(java.lang.String s, boolean compress)
          Transcodes a Base64 encoded string (i.e.
static java.lang.Object fromURLEncodedString(java.lang.String s)
           
static java.lang.Object fromURLEncodedString(java.lang.String s, boolean compress)
           
static byte[] toByteArray(java.io.Serializable s)
           
static byte[] toByteArray(java.io.Serializable s, boolean compress)
           
static java.lang.String toString(java.io.Serializable o)
           
static java.lang.String toString(java.io.Serializable o, boolean compress)
          Transcodes a serializable object into a Base64 encoded string.
static java.lang.String toURLEncodedString(java.io.Serializable o)
           
static java.lang.String toURLEncodedString(java.io.Serializable o, boolean compress)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

toString

public static java.lang.String toString(java.io.Serializable o)
                                 throws java.io.IOException,
                                        javax.mail.MessagingException
Throws:
java.io.IOException
javax.mail.MessagingException

toURLEncodedString

public static java.lang.String toURLEncodedString(java.io.Serializable o)
                                           throws java.io.IOException
Throws:
java.io.IOException

toURLEncodedString

public static java.lang.String toURLEncodedString(java.io.Serializable o,
                                                  boolean compress)
                                           throws java.io.IOException
Throws:
java.io.IOException

fromURLEncodedString

public static java.lang.Object fromURLEncodedString(java.lang.String s)
                                             throws java.io.IOException,
                                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

fromURLEncodedString

public static java.lang.Object fromURLEncodedString(java.lang.String s,
                                                    boolean compress)
                                             throws java.io.IOException,
                                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toString

public static java.lang.String toString(java.io.Serializable o,
                                        boolean compress)
                                 throws java.io.IOException
Transcodes a serializable object into a Base64 encoded string.
Parameters:
o - the object to be serialized
Returns:
a String containing the serialized object
Throws:
java.io.IOException

fromString

public static java.lang.Object fromString(java.lang.String s)
                                   throws java.io.IOException,
                                          java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

fromString

public static java.lang.Object fromString(java.lang.String s,
                                          boolean compress)
                                   throws java.io.IOException,
                                          java.lang.ClassNotFoundException
Transcodes a Base64 encoded string (i.e. the one generated by toString(Serializable)) into an object.
Parameters:
s - the encoded String
Returns:
the object which was generated from the string
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toByteArray

public static byte[] toByteArray(java.io.Serializable s)
                          throws java.io.IOException
Throws:
java.io.IOException

toByteArray

public static byte[] toByteArray(java.io.Serializable s,
                                 boolean compress)
                          throws java.io.IOException
Throws:
java.io.IOException

fromByteArray

public static java.lang.Object fromByteArray(byte[] b)
                                      throws java.io.IOException,
                                             java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

fromByteArray

public static java.lang.Object fromByteArray(byte[] b,
                                             boolean compress)
                                      throws java.io.IOException,
                                             java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.