|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tinyline.util.TinyUtils
The TinyUtils class implements parsers with support for
basic data types and objects.
| Field Summary | |
static int |
num_error
The error of the last parsing operation. |
static int |
NUMBER_ERR_FORMAT
The last parsing operation failed. |
static int |
NUMBER_ERR_OK
The last parsing operation passed OK. |
| Constructor Summary | |
TinyUtils()
|
|
| Method Summary | |
int[] |
parseDashArray(char[] r,
int len)
Parses dasharray of fixed point numbers from a list of comma-separated (with optional white space) lengths of alternating dashes and gaps. |
static int |
parseDoubleFix(char[] buffer,
int position,
int count)
Parses the content of the input buffer and converts it to a double fixed point number. |
static int |
parseDoubleFix(TinyString str)
Parses the content of the input string and converts it to a double fixed point number. |
static int |
parseFix(char[] buffer,
int position,
int count)
Parses the content of the input buffer and converts it to a fixed point number. |
static int |
parseFix(TinyString str)
Parses the content of the input string and converts it to a fixed point number. |
static int |
parseInt(char[] buffer,
int position,
int endpos,
int radix)
Parses the content of the input buffer and converts it to an integer number. |
static int |
parseInt(TinyString str)
Parses the content of the input string and converts it to a integer number. |
TinyVector |
parseNumbers(char[] r,
int len)
Parses the list of numbers. |
TinyPath |
parsePath(char[] r,
int len,
boolean flag)
Parses TinyPath object from a path data input buffer that contains the moveto, line, curve (both cubic and quadratic Béziers) and closepath instructions. |
TinyPoint |
parsePoint(char[] r,
int len)
Parses the TinyPoint value from a list of two numbers 'x' and 'y', separated by whitespace and/or a comma. |
TinyVector |
parsePoints(char[] r,
int len)
Parses TinyVector of TinyPont objects from a list of numbers 'x' and 'y', separated by whitespaces and/or a commas. |
TinyRect |
parseRect(char[] r,
int len)
Parses the TinyRect value from a list of four numbers 'x', 'y', 'width' and 'height', separated by whitespace and/or a comma. |
TinyColor |
parseRGB(char[] r,
int len)
Parses the input buffer into a TinyColor value using the functional notation. |
TinyPath |
parseSpline(char[] r,
int len)
Parses the spline path. |
TinyVector |
parseTransfroms(char[] r,
int len)
Parses TinyVector of TinyTransforms from a list of transform definitions, which are applied in the order provided. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NUMBER_ERR_OK
public static final int NUMBER_ERR_FORMAT
public static int num_error
| Constructor Detail |
public TinyUtils()
| Method Detail |
public TinyColor parseRGB(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public TinyRect parseRect(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public TinyPoint parsePoint(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public TinyVector parsePoints(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public int[] parseDashArray(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public TinyVector parseNumbers(char[] r,
int len)
public TinyPath parseSpline(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public TinyPath parsePath(char[] r,
int len,
boolean flag)
r - The input buffer.len - The number of chars of the input buffer.flag - The flag is true if the path data is a glyph outline.
public TinyVector parseTransfroms(char[] r,
int len)
r - The input buffer.len - The number of chars of the input buffer.
public static final int parseFix(TinyString str)
str - The input string.
public static final int parseDoubleFix(TinyString str)
str - The input string.
public static final int parseInt(TinyString str)
str - The input string.
public static final int parseFix(char[] buffer,
int position,
int count)
buffer - The input buffer (not copied).position - Offset of the first char of the input buffer.count - Number of chars of the input buffer.
public static final int parseDoubleFix(char[] buffer,
int position,
int count)
buffer - The input buffer (not copied).position - Offset of the first char of the input buffer.count - Number of chars of the input buffer.
public static int parseInt(char[] buffer,
int position,
int endpos,
int radix)
buffer - The input buffer containing the integer
representation to be parsed.position - The (start) offset of the first char of the input buffer.endpos - The end offset of the input buffer.radix - the radix to be used while parsing s.
|
TinyLine v2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||