xBaseJ
Class PictureField
java.lang.Object
|
+--xBaseJ.Field
|
+--xBaseJ.PictureField
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
- public class PictureField
- extends Field
- See Also:
- Serialized Form
Constructor Summary |
PictureField(java.lang.String iName)
public method for creating a picture field object. |
Method Summary |
java.lang.String |
get()
return the contents of the picture Field, variant of the field.get method |
byte[] |
getBytes()
return the contents of the picture Field via its original byte array |
char |
getType()
return the character 'P' indicating a picture field |
void |
put(byte[] inBytes)
sets the contents of the picture Field, variant of the field.put method
data not written into DBF until an update or write is issued. |
void |
put(java.lang.String invalue)
sets the contents of the picture Field, variant of the field.put method
data not written into DBF until an update or write is issued. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PictureField
public PictureField(java.lang.String iName)
throws xBaseJException,
java.io.IOException
- public method for creating a picture field object. It is not associated with a database
but can be when used with some DBF methods.
- Parameters:
Name
- the name of the field- Throws:
xBaseJException
- exception caused in calling methodsjava.io.IOException
- can not occur but defined for calling methods- See Also:
Field
getType
public char getType()
- return the character 'P' indicating a picture field
- Overrides:
getType
in class Field
- Following copied from class:
xBaseJ.Field
- Returns:
- char field type
- Throws:
xBaseJException
- undefined field type
get
public java.lang.String get()
- return the contents of the picture Field, variant of the field.get method
- Overrides:
get
in class Field
- Following copied from class:
xBaseJ.Field
- Returns:
- String field contents after any type of read.
getBytes
public byte[] getBytes()
- return the contents of the picture Field via its original byte array
- Overrides:
getBytes
in class Field
- Parameters:
byte[]
- - if not set a null is returned.
put
public void put(java.lang.String invalue)
throws xBaseJException
- sets the contents of the picture Field, variant of the field.put method
data not written into DBF until an update or write is issued.
- Overrides:
put
in class Field
- Parameters:
invalue
- value to set Field to.
put
public void put(byte[] inBytes)
throws xBaseJException
- sets the contents of the picture Field, variant of the field.put method
data not written into DBF until an update or write is issued.
- Overrides:
put
in class Field
- Parameters:
invalue
- value to set Field to.