wood burning stoves 2.0*
The moose likes Java in General and the fly likes Implementing Vcard2.1 parser in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Implementing Vcard2.1 parser in Java" Watch "Implementing Vcard2.1 parser in Java" New topic
Author

Implementing Vcard2.1 parser in Java

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369

We are trying to parse data received in vCard2.1 format and populate several value objects which are later written to relational database. The vCard data is received as a single long string and to fetch values of different fields we are performing a String#split() operation.
It is observed that lot of GC cycles happen during this time and we were wondering if instead of split(), we could use something else. Like Java's Scanner API.

Question:

1. Will replacing split() calls with Scanner APIs reduce the number of objects created on heap?
2. Can regex be an option worth considering here?

Thanks.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing Vcard2.1 parser in Java
 
Similar Threads
Best option for 2 rows data
Alternative to string tokenzier
Reading data from a file and storing into array of strings problem
I'm lost, need help figuring what todo?
Why StringTokenizer Discouraged nowadays ?