public class DTStringReader
extends java.lang.Object
Constructor and Description |
---|
DTStringReader(java.lang.String pDateTimeStr)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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
|
public DTStringReader(java.lang.String pDateTimeStr)
pDateTimeStr
- 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()
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.