Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.common.util
Class SDBlobUtil

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.common.util.SDBlobUtil

public final class SDBlobUtil
extends java.lang.Object

This class handles Blob utilities for Extract and Upload, including encoding and decoding.


Constructor Summary
SDBlobUtil()
           
 
Method Summary
static java.lang.Object base64Decode(java.lang.Object attrValue)
          Decode the passed base64 encoded object to BlobDomain type.
static java.lang.String base64Encode(java.lang.Object attribObj)
          Base64 Encode the passed blob object.
static boolean isAttrBlob(oracle.jbo.AttributeDef attr)
          Is the attribute def of type BlobDomain class?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDBlobUtil

public SDBlobUtil()
Method Detail

isAttrBlob

public static boolean isAttrBlob(oracle.jbo.AttributeDef attr)
Is the attribute def of type BlobDomain class?

Parameters:
attr - AttributeDef
Returns:
true when attribute is blob type

base64Encode

public static java.lang.String base64Encode(java.lang.Object attribObj)
                                     throws java.io.IOException
Base64 Encode the passed blob object.

Parameters:
attribObj - Object of blob domain type
Returns:
String Base64 encoded string, null if attribObj null
Throws:
java.io.IOException

base64Decode

public static java.lang.Object base64Decode(java.lang.Object attrValue)
                                     throws java.io.IOException
Decode the passed base64 encoded object to BlobDomain type.

Parameters:
attrValue - base64 encoded object attribute value
Returns:
decoded BlobDomain type, null if attrValue null
Throws:
java.io.IOException

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.