|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xBaseJ.fields.Field org.xBaseJ.fields.PictureField
Field Summary |
Fields inherited from class org.xBaseJ.fields.Field |
buffer, bytebuffer, Deleted, Length, myoffset, Name, otherValidCharacters |
Constructor Summary | |
PictureField()
|
|
PictureField(String iName)
public method for creating a picture field object. |
|
PictureField(String Name,
java.nio.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, java.nio.ByteBuffer inBuffer, DBTFile indbtobj) throws 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 Field
CloneNotSupportedException
public char getType()
getType
in class Field
public String get()
get
in class Field
public byte[] getBytes()
getBytes
in class Field
public void read() throws IOException, xBaseJException
read
in class Field
IOException
xBaseJException
public void put(String invalue) throws xBaseJException
put
in class Field
invalue
- value to set Field to.
xBaseJException
- value length too longpublic void put(byte[] inBytes) throws xBaseJException
put
in class Field
inBytes
- value to set Field to.
xBaseJException
- value length too longpublic void write() throws IOException, xBaseJException
write
in class Field
IOException
xBaseJException
public void update() throws IOException, xBaseJException
update
in class Field
IOException
xBaseJException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |