Vote count:
0
I use that libary: http://ift.tt/1Df3scO
This libary read dbf files(structure similar as excel files). Method
dbfreader.getField(i).getName()
gets headers in file like "quantity" and method:
Object aobj[] = dbfreader.nextRecord(Charset.forName("GBK")
gets records like "123", 12-04-2015 etc.
I try to add result of this reader to any collection.
At the beginning i try this:
class Data {
private String header;
private Object object;
}
and add to arraylist:
ArrayList<Data>
but I have all the data from all of the file and then search it hard.
Output data:
quantity 2063 quantity 2063 quantity 2063
It is possible to get data from dbf(row by row) to any collection?
I see tha solution like this: 1.Read dbf file with that library(read header + first row) 2. add to any collection ??? 3. read next row 4. add to collection ...
asked 41 secs ago
DBFReader libary in java add to any collection
Aucun commentaire:
Enregistrer un commentaire