Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Comression ?

 
bob connolly
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

Has anyone had any experience with any kind of XML compression tool?

And if so, is Java able to read that data directly from the compressed file?

Thanks very much!
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by bob connolly:
Has anyone had any experience with any kind of XML compression tool?

And if so, is Java able to read that data directly from the compressed file?
GZIP should work just fine on XML just like on any other text files. Although you can't just give a gzipped InputStream to a JAXP compliant parser (it wouldn't recognize that the stream is gzipped), it shouldn't be too much work to do the gzipping/unzipping yourself before/after handing the XML over to the JAXP parser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic