COM.FutureTense.Interfaces
Class FTVAL

java.lang.Object
  extended byCOM.FutureTense.Interfaces.FTVAL
All Implemented Interfaces:
java.io.Serializable

public class FTVAL
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int BLOB
           
static int DATE
           
static int DOUBLE
           
static int I4
           
static int LONG
           
static int LPSTR
           
static int UNKNOWN
           
 
Constructor Summary
FTVAL()
           
 
Method Summary
 byte[] getBlob()
          Method to get the value as a byte array if the value is a blob
 java.lang.String getFile()
          Method to get a file representation of the object
 int GetInt()
          Return the integer value from this object
 java.lang.Object GetObj()
          Return the data from this object
 int GetSize()
          Deprecated. returns 0 for indirect files
 java.io.InputStream getStream()
          Method to get an input stream for the data
 java.lang.String getString()
          Method to get the value as a string if the value is not a blob
 int GetType()
          Deprecated. the type should be private
 boolean isEmpty()
          Method to determine if a value is empty
 long length()
          Method to determine the length of a value
 void readObject(java.io.ObjectInputStream oObjectInputStream)
          Method to read a serialized object from an input stream
 java.lang.String toString()
          Method to convert a value to a string
 java.lang.String toString(java.lang.String sEncoding)
          Method to convert a value to a string
 void writeObject(java.io.ObjectOutputStream oObjectOutputStream)
          Method to write a serialized object to an output stream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

I4

public static final int I4
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

LPSTR

public static final int LPSTR
See Also:
Constant Field Values

BLOB

public static final int BLOB
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values
Constructor Detail

FTVAL

public FTVAL()
Method Detail

GetObj

public final java.lang.Object GetObj()
Return the data from this object

Returns:
Object value

GetInt

public final int GetInt()
Return the integer value from this object

Returns:
int value

GetSize

public final int GetSize()
Deprecated. returns 0 for indirect files

Return the integer size

Returns:
int size, may be zero if not proper data type

GetType

public final int GetType()
Deprecated. the type should be private

Return the integer type

Returns:
int type of value

getBlob

public final byte[] getBlob()
Method to get the value as a byte array if the value is a blob

Returns:
value as a byte array or null

getFile

public final java.lang.String getFile()
                               throws java.lang.Exception
Method to get a file representation of the object

Returns:
file name for the value or null
Throws:
java.lang.Exception
Since:
5.0

getStream

public final java.io.InputStream getStream()
                                    throws java.lang.Exception
Method to get an input stream for the data

Returns:
input stream for the data or null on error
Throws:
java.lang.Exception
Since:
5.0

getString

public final java.lang.String getString()
Method to get the value as a string if the value is not a blob

Returns:
value as a string or null
Since:
5.0

isEmpty

public final boolean isEmpty()
Method to determine if a value is empty

Returns:
true if empty else false
Since:
5.0

length

public final long length()
Method to determine the length of a value

Returns:
length of the value or zero
Since:
5.0

toString

public final java.lang.String toString()
Method to convert a value to a string

Returns:
value converted to a String or null
Since:
4.0

toString

public final java.lang.String toString(java.lang.String sEncoding)
Method to convert a value to a string

Parameters:
sEncoding - encoding to be used in conversion
Returns:
value converted to a String or null
Since:
4.0

readObject

public void readObject(java.io.ObjectInputStream oObjectInputStream)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Method to read a serialized object from an input stream

Parameters:
oObjectInputStream - object input stream
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Since:
5.0

writeObject

public void writeObject(java.io.ObjectOutputStream oObjectOutputStream)
                 throws java.io.IOException
Method to write a serialized object to an output stream

Parameters:
oObjectOutputStream - object output stream
Throws:
java.io.IOException
Since:
5.0