xBaseJ
Class MemoField

java.lang.Object
  |
  +--xBaseJ.Field
        |
        +--xBaseJ.MemoField
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable

public class MemoField
extends Field

See Also:
Serialized Form

Constructor Summary
MemoField(java.lang.String iName)
          public method for creating a memo field object.
MemoField(java.lang.String iName, boolean inFoxPro)
          public method for creating a FoxPro 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
 boolean isFoxPro()
           
 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, put, readExternal, writeExternal
 
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.

Throws:
xBaseJException - exception caused in calling methods
java.io.IOException - can not occur but defined for calling methods
See Also:
Field

MemoField

public MemoField(java.lang.String iName,
                 boolean inFoxPro)
          throws xBaseJException,
                 java.io.IOException
public method for creating a FoxPro memo field object. It is not associated with a database but can be when used with some DBF methods.

Parameters:
inFoxPro - - boolean
Throws:
xBaseJException - exception caused in calling methods
java.io.IOException - can not occur but defined for calling methods
See Also:
Field
Method Detail

isFoxPro

public boolean isFoxPro()

type

public char type()
Deprecated. use getType

return the character 'M' indicating a memo field

Overrides:
type in class Field
Returns:
char field type

getType

public char getType()
return the character 'M' indicating a memo field

Overrides:
getType in class Field
Returns:
char 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
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
Returns:
byte[] - may return a null if not set

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.