public class FTVAL extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
BLOB |
static int |
DATE |
static int |
DOUBLE |
static int |
I4 |
static int |
LONG |
static int |
LPSTR |
static int |
UNKNOWN |
Modifier | Constructor and Description |
---|---|
|
FTVAL() |
protected |
FTVAL(byte[] data) |
protected |
FTVAL(int value) |
protected |
FTVAL(Integer value) |
protected |
FTVAL(int type, Object data) |
protected |
FTVAL(long value) |
protected |
FTVAL(Long value) |
protected |
FTVAL(Object data) |
protected |
FTVAL(Path oFile) |
protected |
FTVAL(String sValue) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlob()
Method to get the value as a byte array if the value is a blob
|
String |
getFile()
Method to get a file representation of the object
|
int |
GetInt()
Return the integer value from this object
|
Object |
GetObj()
Return the data from this object
|
int |
GetSize()
Deprecated.
returns 0 for indirect files
|
InputStream |
getStream()
Method to get an input stream for the data
|
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(ObjectInputStream oObjectInputStream)
Method to read a serialized object from an input stream
|
void |
readObject(ObjectInputStream oObjectInputStream, boolean fileNameOnly)
Method to read a serialized object from an input stream
|
String |
toString()
Method to convert a value to a string
|
String |
toString(String sEncoding)
Method to convert a value to a string
|
void |
writeObject(ObjectOutputStream oObjectOutputStream)
Method to write a serialized object to an output stream
|
void |
writeObject(ObjectOutputStream oObjectOutputStream, boolean fileNameOnly)
Method to write a serialized object to an output stream
|
public static final int I4
public static final int LONG
public static final int DOUBLE
public static final int UNKNOWN
public static final int LPSTR
public static final int BLOB
public static final int DATE
public FTVAL()
protected FTVAL(String sValue)
protected FTVAL(Path oFile)
protected FTVAL(int type, Object data)
protected FTVAL(Long value)
protected FTVAL(Integer value)
protected FTVAL(int value)
protected FTVAL(long value)
protected FTVAL(byte[] data)
protected FTVAL(Object data)
public final Object GetObj()
public final int GetInt()
public final int GetSize()
public final int GetType()
public final byte[] getBlob()
public final String getFile() throws Exception
Exception
- on errorpublic final InputStream getStream() throws Exception
Exception
- on errorpublic final String getString()
public final boolean isEmpty()
public final long length()
public final String toString()
public final String toString(String sEncoding)
sEncoding
- encoding to be used in conversionpublic void readObject(ObjectInputStream oObjectInputStream) throws IOException, ClassNotFoundException
oObjectInputStream
- object input streamIOException
- on errorClassNotFoundException
- on errorpublic void readObject(ObjectInputStream oObjectInputStream, boolean fileNameOnly) throws IOException, ClassNotFoundException
oObjectInputStream
- object input streamfileNameOnly
- a boolean value.IOException
- on errorClassNotFoundException
- on errorpublic void writeObject(ObjectOutputStream oObjectOutputStream) throws IOException
oObjectOutputStream
- object output streamIOException
- on errorpublic void writeObject(ObjectOutputStream oObjectOutputStream, boolean fileNameOnly) throws IOException
oObjectOutputStream
- object output streamfileNameOnly
- a boolean value.IOException
- on error