|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ohrasys.cad.gds.GDSSpecificDataConverter
public class GDSSpecificDataConverter
Converts java floating point and string types to the corresponding GDSII types.
| Constructor Summary | |
|---|---|
GDSSpecificDataConverter()
|
|
| Method Summary | |
|---|---|
static java.util.List |
flattenList(java.util.List flat,
java.util.List hier)
Returns a flattened representation of a hierarchical list. |
static java.io.ByteArrayOutputStream |
fromJavaDouble(double data,
java.io.ByteArrayOutputStream baos)
Converts a java double to a GDSII double and stores it in the specified stream. |
static java.io.ByteArrayOutputStream |
fromJavaFloat(float data,
java.io.ByteArrayOutputStream baos)
Converts a java float to a GDSII float and stores it in the specified stream. |
static java.io.ByteArrayOutputStream |
fromJavaString(java.lang.String data,
java.io.ByteArrayOutputStream baos)
Converts a java string to a GDSII string and stores it in the specified stream. |
static java.io.ByteArrayOutputStream |
fromJavaString(java.lang.String data,
int len,
java.io.ByteArrayOutputStream baos)
Converts a java string to a GDSII string and stores it in the specified stream. |
static double |
readDouble(java.io.InputStream in)
Reads a GDSII double from the stream and converts it to a java double. |
static float |
readFloat(java.io.InputStream in)
Reads a GDSII float from the stream and converts it to a java float. |
static double |
toDouble(byte[] bytes)
Converts a GDSII double to a java double. |
static float |
toFloat(byte[] bytes)
Converts a GDSII float to a java float. |
static java.lang.String |
toJavaString(byte[] data)
Converts a GDSII string to a java string. |
java.lang.String |
toString()
Returns a string representation of this class |
static byte[] |
writeJavaDouble(double data)
Returns a GDSII representation of the double. |
static byte[] |
writeJavaFloat(float data)
Returns a GDSII representation of the java float. |
static byte[] |
writeJavaString(java.lang.String data)
Returns a GDSII string. |
static byte[] |
writeJavaString(java.lang.String data,
int len)
Returns a GDSII string of specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GDSSpecificDataConverter()
| Method Detail |
|---|
public static java.util.List flattenList(java.util.List flat,
java.util.List hier)
flat - The list in which to store the resultshier - The list to flatten
public static java.io.ByteArrayOutputStream fromJavaDouble(double data,
java.io.ByteArrayOutputStream baos)
data - The double to process.baos - The output stream to store the double.
public static java.io.ByteArrayOutputStream fromJavaFloat(float data,
java.io.ByteArrayOutputStream baos)
data - The float to process.baos - The output stream to store the float.
public static java.io.ByteArrayOutputStream fromJavaString(java.lang.String data,
java.io.ByteArrayOutputStream baos)
data - The string to process.baos - The output stream to store the string.
public static java.io.ByteArrayOutputStream fromJavaString(java.lang.String data,
int len,
java.io.ByteArrayOutputStream baos)
data - The string to process.len - The required length of the resulting string.baos - The output stream to store the string.
public static double readDouble(java.io.InputStream in)
throws java.lang.NumberFormatException
in - The stream to read the GDSII double from.
java.lang.NumberFormatException - If a number format exception occurs.
public static float readFloat(java.io.InputStream in)
throws java.lang.NumberFormatException
in - The stream to read the GDSII float from.
java.lang.NumberFormatException - If a number format exception occurs.
public static double toDouble(byte[] bytes)
throws java.lang.NumberFormatException
bytes - The GDSII double to process.
java.lang.NumberFormatException - If a number format exception occurs.
public static float toFloat(byte[] bytes)
throws java.lang.NumberFormatException
bytes - The GDSII float to process.
java.lang.NumberFormatException - If a number format exception occurs.public static java.lang.String toJavaString(byte[] data)
data - The GDSII string to process.
public static byte[] writeJavaDouble(double data)
data - The double to process.
java.lang.IllegalArgumentException - If a number format exception occurs.public static byte[] writeJavaFloat(float data)
data - The float to process.
java.lang.IllegalArgumentException - If a number format exception is
encountered.public static byte[] writeJavaString(java.lang.String data)
data - The string to process.
public static byte[] writeJavaString(java.lang.String data,
int len)
data - The string to process.len - The required length of the resulting string.
java.lang.IllegalArgumentException - If the string is not an even number of
characters.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||