org.basex.query.util.archive
Class ZIPOut

java.lang.Object
  extended by org.basex.query.util.archive.ArchiveOut
      extended by org.basex.query.util.archive.ZIPOut

public final class ZIPOut
extends ArchiveOut

ZIP output.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Constructor Summary
ZIPOut()
          Writing constructor.
 
Method Summary
 void close()
          Closes the stream.
 void level(int l)
          Sets the compression level.
 void write(ArchiveIn in)
          Writes data from the specified archive.
 void write(java.util.zip.ZipEntry entry, byte[] val)
          Writes the specified entry.
 
Methods inherited from class org.basex.query.util.archive.ArchiveOut
get, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZIPOut

public ZIPOut()
Writing constructor.

Method Detail

level

public void level(int l)
Description copied from class: ArchiveOut
Sets the compression level.

Specified by:
level in class ArchiveOut
Parameters:
l - level

write

public void write(ArchiveIn in)
           throws java.io.IOException
Description copied from class: ArchiveOut
Writes data from the specified archive.

Specified by:
write in class ArchiveOut
Parameters:
in - input archive
Throws:
java.io.IOException - I/O exception

write

public void write(java.util.zip.ZipEntry entry,
                  byte[] val)
           throws java.io.IOException
Description copied from class: ArchiveOut
Writes the specified entry.

Specified by:
write in class ArchiveOut
Parameters:
entry - zip entry
val - value to be written
Throws:
java.io.IOException - I/O exception

close

public void close()
Description copied from class: ArchiveOut
Closes the stream.

Specified by:
close in class ArchiveOut