Add normalized method.
This commit is contained in:
parent
15ffb993f8
commit
54dfaff72d
1 changed files with 18 additions and 0 deletions
|
@ -58,6 +58,24 @@ public class XMLZipWriter extends XMLWriter
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue