Class DxfGroup
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dxf.DxfGroup
-
public class DxfGroup extends Object
DxfGroup is a group containing a dxf code and a dxf value. The class contains several utils to read and write groups an to format data.- Version:
- 0.5.0
- Author:
- Micha�l Michaud
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)longgetAddress()intgetCode()doublegetDoubleValue()floatgetFloatValue()intgetIntValue()StringgetValue()inthashCode()static Stringint34car(int code)static Stringint6car(int value)static DxfGroupreadGroup(RandomAccessFile raf)voidsetCode(int code)StringtoString()static StringtoString(int code, double value, int decimalPartLength)static StringtoString(int code, float value, int decimalPartLength)static StringtoString(int code, int value)static StringtoString(int code, Object value)static StringtoString(int code, String value)
-
-
-
Constructor Detail
-
DxfGroup
public DxfGroup(int code, String value)
-
DxfGroup
public DxfGroup(String code, String value) throws NumberFormatException
- Throws:
NumberFormatException
-
-
Method Detail
-
getCode
public int getCode()
-
setCode
public void setCode(int code)
-
getValue
public String getValue()
-
getIntValue
public int getIntValue()
-
getFloatValue
public float getFloatValue()
-
getDoubleValue
public double getDoubleValue()
-
getAddress
public long getAddress()
-
int34car
public static String int34car(int code)
-
int6car
public static String int6car(int value)
-
toString
public static String toString(int code, int value)
-
toString
public static String toString(int code, float value, int decimalPartLength)
-
toString
public static String toString(int code, double value, int decimalPartLength)
-
readGroup
public static DxfGroup readGroup(RandomAccessFile raf) throws IOException
- Throws:
IOException
-
-