com.metamatrix.connector.xml.base
Class FileBackedValueReference

java.lang.Object
  extended by com.metamatrix.connector.xml.base.FileBackedValueReference
All Implemented Interfaces:
LargeTextValueReference

public class FileBackedValueReference
extends java.lang.Object
implements LargeTextValueReference


Constructor Summary
protected FileBackedValueReference(FileLifeManager fileLifeManager)
           
 
Method Summary
 java.lang.String getContentAsString()
          Obtain the content held in the reference as a string.
static java.lang.String getEncoding()
           
 long getSize()
          Get total size of the object.
 java.lang.Object getValue()
          Obtain the actual original value that is held by the reference.
 boolean isBinary()
          Determine whether this is a blob or clob type object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBackedValueReference

protected FileBackedValueReference(FileLifeManager fileLifeManager)
                            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: LargeTextValueReference
Obtain the actual original value that is held by the reference.

Specified by:
getValue in interface LargeTextValueReference
Returns:
The original large object from the source

getSize

public long getSize()
Description copied from interface: LargeTextValueReference
Get total size of the object. This is expected to potentially take a long time if the entire object must be scanned to determine the size.

Specified by:
getSize in interface LargeTextValueReference
Returns:
Size of the object in either bytes or characters, as appropriate

getContentAsString

public java.lang.String getContentAsString()
                                    throws ConnectorException
Description copied from interface: LargeTextValueReference
Obtain the content held in the reference as a string.

Specified by:
getContentAsString in interface LargeTextValueReference
Returns:
String representation of reference content.
Throws:
ConnectorException

isBinary

public boolean isBinary()
Description copied from interface: LargeTextValueReference
Determine whether this is a blob or clob type object.

Specified by:
isBinary in interface LargeTextValueReference
Returns:
True if binary, false if character data

getEncoding

public static java.lang.String getEncoding()
Returns:
Returns the encoding.


Copyright © 2009. All Rights Reserved.