Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.6.0)

E10653-07

oracle.jbo.common
Class Base64

java.lang.Object
  extended by oracle.jbo.common.Base64

public class Base64
extends java.lang.Object

Helper class to handle the task of making a serialized byte[] blob into a string (by overriding toString) on the OutputStream and unmaking the string back to byte[] so the objects can be read back in. It was taken (almost unchanged) from java.util.prefs.Base64 (where it's non-public). Base64 encoding is about 2/3 the size of the equivalent hexified string.


Constructor Summary
Base64()
           
 
Method Summary
static java.io.InputStream getInputStream(java.lang.String encodedString)
           
static java.io.OutputStream getOutputStream(int size)
           
static void releaseDeflater(java.util.zip.Deflater def)
          Return the shared Deflater to the cache.
static void releaseInflater(java.util.zip.Inflater inf)
          Return the shared Inflater to the cache.
static java.util.zip.Deflater useDeflater()
          Share the cached Deflater with other Base64 users.
static java.util.zip.Inflater useInflater()
          Share the cached Inflater with other Base64 users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

getOutputStream

public static java.io.OutputStream getOutputStream(int size)

getInputStream

public static java.io.InputStream getInputStream(java.lang.String encodedString)

useDeflater

public static java.util.zip.Deflater useDeflater()
Share the cached Deflater with other Base64 users. Use releaseDeflater to return the Deflater to the cache when done. Internal use only: Applications should not use this method.


releaseDeflater

public static void releaseDeflater(java.util.zip.Deflater def)
Return the shared Deflater to the cache. Internal use only: Applications should not use this method.


useInflater

public static java.util.zip.Inflater useInflater()
Share the cached Inflater with other Base64 users. Use releaseInflater to return the Inflater to the cache when done. Internal use only: Applications should not use this method.


releaseInflater

public static void releaseInflater(java.util.zip.Inflater inf)
Return the shared Inflater to the cache. Internal use only: Applications should not use this method.


Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.6.0)

E10653-07

Copyright © 1997, 2011, Oracle. All rights reserved.