|
From: G. P. <pag...@ya...> - 2007-05-15 03:31:47
|
Hi List,
I am trying to read from a gzipped xml file, with the following code :
GZIPInputStream gz = new GZIPInputStream(new FileInputStream (file));
byte[] b = new byte[(int) 2*1024]; //max file size
gz.read(b);
VTDGen vg = new VTDGen();
vg.setDoc(b);
vg.parse(false);
But I get an
Exception in thread "main" com.ximpleware.ParseException: Starting tag Error: Invalid char in starting tag
Line Number: 22 Offset: 15
at com.ximpleware.VTDGen.parse(VTDGen.java:1388)
Can someone point me how I can read directly from a gz file ?
thanks in advance
gpio
---------------------------------
Χρησιμοποιείτε Yahoo!
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
http://login.yahoo.com/config/mail?.intl=gr |