Re: append to gzip or bz2

2011-03-29 Thread Alexander Gubin
got it, thanks Stefan On Tue, Mar 29, 2011 at 9:05 PM, Stefan Bodewig wrote: > On 2011-03-30, Alexander Gubin wrote: > >> Does commons-compress support appending to compressed files? > > In general the compression formats don't support appending. > > Many algorithms are block based (bzip is one)

Re: append to gzip or bz2

2011-03-29 Thread Stefan Bodewig
On 2011-03-30, Alexander Gubin wrote: > Does commons-compress support appending to compressed files? In general the compression formats don't support appending. Many algorithms are block based (bzip is one) and if your original data's length isn't an exact multiple of the block size (which in ge

append to gzip or bz2

2011-03-29 Thread Alexander Gubin
Hi, Does commons-compress support appending to compressed files? E.g. if I start my stream as following: FileOutputStream out2 = new FileOutputStream(output2, true); //append if file exists CompressorOutputStream cos2 = new CompressorStreamFactory().createCompressorOutputStream("bzip2", out2);

Re: [dbcp] interrupted?

2011-03-29 Thread sebb
On 29 March 2011 23:21, Abraham Saiovici wrote: > Hello, I just started using the Apache DBCP API and this is the error that > spits out (along with the code): http://pastebin.com/GAKbDXyw- it's beeing > interrupted in the WHEN_EXHAUSTED_BLOCK in the > GenericObjectPool.borrowObject function. I do

[dbcp] interrupted?

2011-03-29 Thread Abraham Saiovici
Hello, I just started using the Apache DBCP API and this is the error that spits out (along with the code): http://pastebin.com/GAKbDXyw- it's beeing interrupted in the WHEN_EXHAUSTED_BLOCK in the GenericObjectPool.borrowObject function. I do call connection.close() on the connections received

Re: [jxpath] how to get map key values?

2011-03-29 Thread fovea1959-apache
Matt, thanks for the idea. Unfortunately, my mileage did vary. I wrapped the map in a   public class Container {     Object o;     public Object getO() {   return o;     }     public void setO(Object o) {   this.o = o;     }   } and '@name', 'o/@name', etc. didn't work IIRC, JXPa

Re: [jxpath] how to get map key values?

2011-03-29 Thread Matt Benson
On Tue, Mar 29, 2011 at 10:13 AM, wrote: > I am using a thirdparty library that is handing me a map. I have been using > jxpath to fish values out of nested structures in the map values but now > I need to know the map *key* values. I know how to get the *entries*, but the > finding out th

[jxpath] how to get map key values?

2011-03-29 Thread fovea1959-apache
I am using a thirdparty library that is handing me a map. I have been using jxpath to fish values out of nested structures in the map values but now I need to know the map *key* values. I know how to get the *entries*, but the finding out the keys from jxpath eludes me.  public void jxpathM

[ANNOUNCEMENT] Apache Commons Codec 1.5 is now available

2011-03-29 Thread Gary Gregory
The Commons Codec team is pleased to announce the commons-codec-1.5 release! The codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to thes widely used encoders and decoders, the codec package also maintains acollection of phonetic e

Re: [digester] java.lang.NullPointerException only for a specific file

2011-03-29 Thread Simone Tripodi
Hi Patrick, I'd say: it depends! I don't know the domain you're working on, I'd say once you import the XML into Lucene index you don't need the XML anymore. Do you need data have to be persisted to be reused in a second time? So use a DB. Do you need analyze documents just to populate the Lucene

Re: [digester] java.lang.NullPointerException only for a specific file

2011-03-29 Thread Patrick Diviacco
hey Simone, I was now wondering if isn't better to import my xml doc in a database and working with mysql. I guess it is faster to scan a mysql database with java rather than a xml doc, what do you think ? I'm using Digester combined with Apache Lucene to perform queries (all together they are 6