com.metamatrix.connector.xml.base
Interface LargeTextValueReference

All Known Implementing Classes:
FileBackedValueReference, StringBackedValueReference

public interface LargeTextValueReference


Method Summary
 java.lang.String getContentAsString()
          Obtain the content held in the reference as a string.
 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.
 

Method Detail

getValue

java.lang.Object getValue()
Obtain the actual original value that is held by the reference.

Returns:
The original large object from the source

getContentAsString

java.lang.String getContentAsString()
                                    throws ConnectorException
Obtain the content held in the reference as a string.

Returns:
String representation of reference content.
Throws:
ConnectorException

getSize

long getSize()
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.

Returns:
Size of the object in either bytes or characters, as appropriate

isBinary

boolean isBinary()
Determine whether this is a blob or clob type object.

Returns:
True if binary, false if character data


Copyright © 2009. All Rights Reserved.