xBaseJ
Class PictureField

java.lang.Object
  |
  +--xBaseJ.Field
        |
        +--xBaseJ.PictureField

public class PictureField
extends Field


Constructor Summary
PictureField(java.lang.String iName)
          public method for creating a memo field object.
 
Method Summary
 java.lang.String get()
          return the contents of the memo Field, variant of the field.get method
 byte[] getBytes()
          return the contents of the memo 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 memo 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 memo Field, variant of the field.put method data not written into DBF until an update or write is issued.
 
Methods inherited from class xBaseJ.Field
decPoint, getDecimalPositionCount, getLength, getName, length, name, type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PictureField

public PictureField(java.lang.String iName)
             throws xBaseJException,
                    java.io.IOException
public method for creating a memo 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 methods
java.io.IOException - can not occur but defined for calling methods
See Also:
Field
Method Detail

getType

public char getType()
return the character 'P' indicating a picture field
Overrides:
getType in class Field
Tags copied from class: Field
Returns:
char field type
Throws:
xBaseJException - undefined field type

get

public java.lang.String get()
return the contents of the memo Field, variant of the field.get method
Overrides:
get in class Field
Tags copied from class: Field
Returns:
String field contents after any type of read.

getBytes

public byte[] getBytes()
return the contents of the memo 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 memo 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 memo Field, variant of the field.put method data not written into DBF until an update or write is issued.
Parameters:
invalue - value to set Field to.