|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xBaseJ.fields.Field
org.xBaseJ.fields.MemoField
public class MemoField
This class is courtesy of the xBaseJ project: http://xbasej.sourceforge.net/ Copyright 1997-2007 - American Coders, LTD - Raleigh NC USA
American Coders, Ltd P. O. Box 97462 Raleigh, NC 27615 USA 1-919-846-2014 http://www.americancoders.com
| Field Summary |
|---|
| Fields inherited from class org.xBaseJ.fields.Field |
|---|
buffer, bytebuffer, deleted, myoffset, name, nength, otherValidCharacters |
| Constructor Summary | |
|---|---|
MemoField()
|
|
MemoField(boolean inFoxPro)
|
|
MemoField(String iName)
public method for creating a memo field object. |
|
MemoField(String iName,
boolean inFoxPro)
public method for creating a FoxPro memo field object. |
|
MemoField(String Name,
ByteBuffer inBuffer,
DBTFile indbtobj)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
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(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(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. |
void |
read()
|
void |
setDBTObj(DBTFile indbtobj)
|
void |
update()
|
void |
write()
|
| Methods inherited from class org.xBaseJ.fields.Field |
|---|
getDecimalPositionCount, getLength, getName, readExternal, setBuffer, setBufferSpace, setField, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoField()
public MemoField(boolean inFoxPro)
public MemoField(String Name,
ByteBuffer inBuffer,
DBTFile indbtobj)
throws xBaseJException,
IOException
xBaseJException
IOException
public MemoField(String iName)
throws xBaseJException,
IOException
iName - the name of the field
xBaseJException - exception caused in calling methods
IOException - can not occur but defined for calling methodsField
public MemoField(String iName,
boolean inFoxPro)
throws xBaseJException,
IOException
iName - the name of the fieldinFoxPro - - boolean
xBaseJException - exception caused in calling methods
IOException - can not occur but defined for calling methodsField| Method Detail |
|---|
public boolean isFoxPro()
public void setDBTObj(DBTFile indbtobj)
public Object clone()
throws CloneNotSupportedException
clone in class FieldCloneNotSupportedExceptionpublic char getType()
getType in class Fieldpublic String get()
get in class Fieldpublic byte[] getBytes()
getBytes in class Field
public void read()
throws IOException,
xBaseJException
read in class FieldIOException
xBaseJExceptionpublic void put(String invalue)
put in class Fieldinvalue - value to set Field to.
public void put(byte[] inBytes)
throws xBaseJException
put in class FieldinBytes - byte array value to set Field to.
xBaseJException - value length too long
public void write()
throws IOException,
xBaseJException
write in class FieldIOException
xBaseJException
public void update()
throws IOException,
xBaseJException
update in class FieldIOException
xBaseJException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||