RecordSet
Hi,
I used to buid an ador.recordset in vbasic, i wan't to know if at Java there are some object like it?
I need to save some string that were tokenized but not all strings of original string.
StringTokenizer stCampo=new StringTokenizer(cadenaCompleta,"\t\r\n");
int iCuentaTokensPorLinea=0;
String sValor=new String();
char caracter;
char caracter2;
char caracter3;
boolean bEsFecha=false;
boolean bEsNumero=false;
try{
while(stCampo.hasMoreTokens()){
sValor=stCampo.nextToken();
if (sValor.equals("INICIO")){
iCuentaTokensPorLinea=1;
}else{
iCuentaTokensPorLinea++;
}
if (iCuentaTokensPorLinea>=23){
try{
caracter=sValor.charAt(2);
}catch(StringIndexOutOfBoundsException soobe){
caracter=' ' ;
}
if (caracter==47){// THE SLASH / TO SEPARATE DATES DD/MM/AAAA
bEsFecha=true;
}
else{
bEsFecha=false;
if (Character.isDigit(caracter2) && Character.isDigit(caracter3)){
bEsNumero=true;
}
else{
bEsNumero=false;
}
}
if (bEsNumero || bEsNumero){
// here need to save the string sValor in something like a table
}
Thanks

