org.xBaseJ.fields
Class CharField

java.lang.Object
  extended byorg.xBaseJ.fields.Field
      extended byorg.xBaseJ.fields.CharField
All Implemented Interfaces:
Cloneable, Externalizable, Serializable

public class CharField
extends Field

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xBaseJ.fields.Field
buffer, bytebuffer, Deleted, Length, myoffset, Name, otherValidCharacters
 
Constructor Summary
CharField()
           
CharField(String iName, int iLength)
          public method for creating a CharacterField object.
CharField(String iName, int iLength, java.nio.ByteBuffer inBuffer)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 field
iLength - length of Field, range 1 to 254 bytes
Throws:
xBaseJException - invalid length
IOException - can not occur but defined for calling methods
See Also:
Field
Method Detail

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.