|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.internal.cim.DTStringReader
public class DTStringReader
Class DTString helps parsing CIMDateTime Strings.
Constructor Summary | |
---|---|
DTStringReader(java.lang.String pDateTimeStr)
Ctor. |
Method Summary | |
---|---|
int |
getPos()
getPos |
boolean |
isUnsignificant()
isUnsignificant |
char |
read()
read |
void |
read(char c)
read - Throws an IllegalArgumentException if the read character is not c. |
int |
read(int pLen,
java.lang.String pFieldName,
boolean pAllowUnsignificant)
read |
int |
readAndCheck(int pLen,
java.lang.String pFieldName,
int pMin,
int pMax,
boolean pAllowUnsignificant)
readAndCheck |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DTStringReader(java.lang.String pDateTimeStr)
pDateTimeStr
- Method Detail |
---|
public int read(int pLen, java.lang.String pFieldName, boolean pAllowUnsignificant) throws java.lang.IllegalArgumentException
pLen
- - number of characters to be read from the stringpFieldName
- - the name of the field which is to be read (e.g. year, month,
day ...)pAllowUnsignificant
-
java.lang.IllegalArgumentException
public int readAndCheck(int pLen, java.lang.String pFieldName, int pMin, int pMax, boolean pAllowUnsignificant) throws java.lang.IllegalArgumentException
pLen
- - number of digits to readpFieldName
- - the name of the field which is to be read (e.g. year, month,
day...)pMin
- - the allowed minimum value (-1 is always allowed as not
significant)pMax
- - the allowed maximum valuepAllowUnsignificant
-
java.lang.IllegalArgumentException
public char read()
public void read(char c) throws java.lang.IllegalArgumentException
c
- - contains the character which should be read from the String.
java.lang.IllegalArgumentException
public int getPos()
public boolean isUnsignificant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |