Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM and Large Files

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: John Cowan <cowan AT ccil.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM and Large Files
  • Date: Wed, 26 Jul 2006 15:22:18 -0400

John Cowan wrote:

TagSoup attempts to be smart about this: it examines the InputStream
to see if it is an instanceof BufferedInputStream, and only if it isn't
does TagSoup bother wrapping it. The same is done with a Reader.



I've considered doing something like that in XOM. The problem is you can be passed something that isn't a BufferedInputStream but is chained to one. For instance, a GZipInputStream chained to a BufferedInputStream chained to a FileInputStream. Then you end up with double buffering for no good reason.


--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page