|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.archive.ArchiveOut
public abstract class ArchiveOut
Archive writer.
Constructor Summary | |
---|---|
ArchiveOut()
|
Method Summary | |
---|---|
abstract void |
close()
Closes the stream. |
static ArchiveOut |
get(java.lang.String format,
InputInfo info)
Returns a new instance of an archive writer. |
abstract void |
level(int l)
Sets the compression level. |
byte[] |
toArray()
Returns the output as byte array. |
abstract void |
write(ArchiveIn in)
Writes data from the specified archive. |
abstract void |
write(java.util.zip.ZipEntry entry,
byte[] val)
Writes the specified entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchiveOut()
Method Detail |
---|
public static ArchiveOut get(java.lang.String format, InputInfo info) throws QueryException
format
- archive formatinfo
- input info
QueryException
- query exceptionpublic abstract void level(int l)
l
- levelpublic abstract void write(ArchiveIn in) throws java.io.IOException
in
- input archive
java.io.IOException
- I/O exceptionpublic abstract void write(java.util.zip.ZipEntry entry, byte[] val) throws java.io.IOException
entry
- zip entryval
- value to be written
java.io.IOException
- I/O exceptionpublic abstract void close()
public final byte[] toArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |