Package hec.map.aishape
Class AiShapeFieldDescriptor
java.lang.Object
hec.map.aishape.AiShapeFieldDescriptor
- All Implemented Interfaces:
hec.io.AsciiSerializable,Serializable,Comparable
public class AiShapeFieldDescriptor
extends Object
implements Serializable, Comparable, hec.io.AsciiSerializable
Class AiShapeFieldDescriptor used to hold data describing a Shape File field
description on the *.dbf file
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAiShapeFieldDescriptor(byte[] field) AiShapeFieldDescriptor(String value, char type, int length, int decimal) -
Method Summary
Modifier and TypeMethodDescriptionintCompares the value of this AiShapeFieldDescriptor to the value of argument object if the argument object is a AiShapeFieldDescriptor.booleangetFieldObject(Field fld) intchargetType()booleanisUnique()booleansetFieldObject(Field fld, Object fobj) toString()voidwriteBytes(byte[] bytes)
-
Constructor Details
-
AiShapeFieldDescriptor
public AiShapeFieldDescriptor() -
AiShapeFieldDescriptor
-
AiShapeFieldDescriptor
- Throws:
IOException
-
-
Method Details
-
equals
-
getLength
public int getLength() -
writeBytes
- Throws:
IOException
-
toString
-
compareTo
Compares the value of this AiShapeFieldDescriptor to the value of argument object if the argument object is a AiShapeFieldDescriptor. Otherwise, throws a ClassCastException.- Specified by:
compareToin interfaceComparable
-
getType
public char getType() -
isUnique
public boolean isUnique() -
getFieldObject
- Specified by:
getFieldObjectin interfacehec.io.AsciiSerializable
-
setFieldObject
- Specified by:
setFieldObjectin interfacehec.io.AsciiSerializable
-