xBaseJ
Class MemoField

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

public class MemoField
extends Field


Constructor Summary
MemoField(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 'M' indicating a memo field
 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.
 char type()
          Deprecated. use getType
 
Methods inherited from class xBaseJ.Field
decPoint, getDecimalPositionCount, getLength, getName, length, name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoField

public MemoField(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

type

public char type()
Deprecated. use getType

return the character 'M' indicating a memo field
Overrides:
type in class Field
Tags copied from class: Field
Returns:
char field type
Throws:
xBaseJException - undefined field type

getType

public char getType()
return the character 'M' indicating a memo 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)
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.