Add normalized method.

This commit is contained in:
Christian P. MOMON 2013-09-11 15:46:06 +02:00
parent 15ffb993f8
commit 54dfaff72d

View file

@ -58,6 +58,24 @@ public class XMLZipWriter extends XMLWriter
this.out = new PrintWriter(new OutputStreamWriter(zos, "UTF-8")); this.out = new PrintWriter(new OutputStreamWriter(zos, "UTF-8"));
} }
/**
*
* @param target
* @throws IOException
*/
public XMLZipWriter(final OutputStream target, final String generator) throws IOException
{
super();
this.zos = new ZipOutputStream(target);
zos.setLevel(Deflater.BEST_COMPRESSION);
zos.setMethod(ZipOutputStream.DEFLATED);
if (generator != null)
{
zos.setComment(generator);
}
this.out = new PrintWriter(new OutputStreamWriter(zos, "UTF-8"));
}
/** /**
* *
* @param target * @param target