org.xBaseJ.fields
Class CharField
java.lang.Object
org.xBaseJ.fields.Field
org.xBaseJ.fields.CharField
- All Implemented Interfaces:
- Cloneable, Externalizable, Serializable
- public class CharField
- extends Field
- See Also:
- Serialized Form
Method Summary |
Object |
clone()
|
char |
getType()
return the character 'C' indicating a character Field |
Methods inherited from class org.xBaseJ.fields.Field |
get, getBytes, getDecimalPositionCount, getLength, getName, put, put, read, readExternal, setBuffer, setBufferSpace, setField, update, write, writeExternal |
CharField
public CharField()
CharField
public CharField(String iName,
int iLength,
java.nio.ByteBuffer inBuffer)
throws xBaseJException,
IOException
CharField
public CharField(String iName,
int iLength)
throws xBaseJException,
IOException
- public method for creating a CharacterField object. It is not associated with a database
but can be when used with some DBF methods.
- Parameters:
iName
- the name of the fieldiLength
- length of Field, range 1 to 254 bytes
- Throws:
xBaseJException
- invalid length
IOException
- can not occur but defined for calling methods- See Also:
Field
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Field
- Throws:
CloneNotSupportedException
getType
public char getType()
- return the character 'C' indicating a character Field
- Overrides:
getType
in class Field
- Returns:
- char field type
Copyright © 1997-2007 American Coders Ltd. All Rights Reserved.