org.xBaseJ.fields
Class CharField

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

public class CharField
extends Field

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
 

Author:
Joe McVerry, American Coders Ltd.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xBaseJ.fields.Field
buffer, bytebuffer, deleted, myoffset, name, nength, otherValidCharacters
 
Constructor Summary
CharField()
           
CharField(String iName, int iLength)
          public method for creating a CharacterField object.
CharField(String iName, int iLength, 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,
                 ByteBuffer inBuffer)
          throws xBaseJException,
                 IOException
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

Specified by:
getType in class Field
Returns:
char field type


Copyright © 2007-2011. All Rights Reserved.