|
||||||||||
| 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.PictureField
public class PictureField
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 | |
|---|---|
PictureField()
|
|
PictureField(String iName)
public method for creating a picture field object. |
|
PictureField(String Name,
ByteBuffer inBuffer,
DBTFile indbtobj)
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
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(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. |
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 PictureField()
public PictureField(String Name,
ByteBuffer inBuffer,
DBTFile indbtobj)
throws xBaseJException,
IOException
xBaseJException
IOException
public PictureField(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| Method Detail |
|---|
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
xBaseJException
public void put(String invalue)
throws xBaseJException
put in class Fieldinvalue - value to set Field to.
xBaseJException - value length too long
public void put(byte[] inBytes)
throws xBaseJException
put in class FieldinBytes - 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 | |||||||||