org.sblim.cimclient.internal.cim
public class DTStringReader extends Object
Constructor Summary | |
---|---|
DTStringReader(String pDateTimeStr)
Ctor.
|
Method Summary | |
---|---|
int | getPos()
getPos
|
boolean | isUnsignificant()
isUnsignificant
|
int | read(int pLen, String pFieldName, boolean pAllowUnsignificant)
read
|
char | read()
read
|
void | read(char c)
read - Throws an IllegalArgumentException if the read character is not c.
|
int | readAndCheck(int pLen, String pFieldName, int pMin, int pMax, boolean pAllowUnsignificant)
readAndCheck
|
Parameters: pDateTimeStr
Returns: the position in the reader
Returns: boolean
Parameters: pLen - number of characters to be readed from the string pFieldName - the name of the field which is to be read (e.g. year, mounth, day ...) pAllowUnsignificant
Returns: int
Throws: IllegalArgumentException
Returns: a char, 0 if failed
Parameters: c - contains the character which should be read from the String.
Throws: IllegalArgumentException
Parameters: pLen - number of digits to read pFieldName - the name of the field which is to be read (e.g. year, mounth, day...) pMin - the allowed minimum value (-1 is always allowed as not significant) pMax - the allowed maximum value pAllowUnsignificant
Returns: int
Throws: IllegalArgumentException