|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
java.util.zip.ZipOutputStream
com.zeroturnaround.liverebel.util.TeeZipOutputStream
public class TeeZipOutputStream
Modification of TeeOutputStream that extends ZipOutputStream
Classic splitter of OutputStream. Named after the unix 'tee'
command. It allows a stream to be branched off so there
are now two streams.
| Field Summary | |
|---|---|
protected OutputStream |
branch
the second OutputStream to write to |
static int |
CENATT
|
static int |
CENATX
|
static int |
CENCOM
|
static int |
CENCRC
|
static int |
CENDSK
|
static int |
CENEXT
|
static int |
CENFLG
|
static int |
CENHDR
|
static int |
CENHOW
|
static int |
CENLEN
|
static int |
CENNAM
|
static int |
CENOFF
|
static long |
CENSIG
|
static int |
CENSIZ
|
static int |
CENTIM
|
static int |
CENVEM
|
static int |
CENVER
|
static int |
ENDCOM
|
static int |
ENDHDR
|
static int |
ENDOFF
|
static long |
ENDSIG
|
static int |
ENDSIZ
|
static int |
ENDSUB
|
static int |
ENDTOT
|
static int |
EXTCRC
|
static int |
EXTHDR
|
static int |
EXTLEN
|
static long |
EXTSIG
|
static int |
EXTSIZ
|
static int |
LOCCRC
|
static int |
LOCEXT
|
static int |
LOCFLG
|
static int |
LOCHDR
|
static int |
LOCHOW
|
static int |
LOCLEN
|
static int |
LOCNAM
|
static long |
LOCSIG
|
static int |
LOCSIZ
|
static int |
LOCTIM
|
static int |
LOCVER
|
| Fields inherited from class java.util.zip.ZipOutputStream |
|---|
DEFLATED, STORED |
| Fields inherited from class java.util.zip.DeflaterOutputStream |
|---|
buf, def |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
TeeZipOutputStream(ZipOutputStream out,
OutputStream branch)
Constructs a TeeOutputStream. |
|
| Method Summary | |
|---|---|
protected Object |
clone()
|
void |
close()
Closes both streams. |
void |
closeEntry()
|
protected void |
deflate()
|
boolean |
equals(Object obj)
|
protected void |
finalize()
|
void |
finish()
|
void |
flush()
Flushes both streams. |
int |
hashCode()
|
void |
putNextEntry(ZipEntry e)
|
void |
setComment(String comment)
|
void |
setLevel(int level)
|
void |
setMethod(int method)
|
String |
toString()
|
void |
write(byte[] b)
Write the bytes to both streams. |
void |
write(byte[] b,
int off,
int len)
Write the specified bytes to both streams. |
void |
write(int b)
Write a byte to both streams. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected OutputStream branch
public static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCHDR
public static final int EXTHDR
public static final int CENHDR
public static final int ENDHDR
public static final int LOCVER
public static final int LOCFLG
public static final int LOCHOW
public static final int LOCTIM
public static final int LOCCRC
public static final int LOCSIZ
public static final int LOCLEN
public static final int LOCNAM
public static final int LOCEXT
public static final int EXTCRC
public static final int EXTSIZ
public static final int EXTLEN
public static final int CENVEM
public static final int CENVER
public static final int CENFLG
public static final int CENHOW
public static final int CENTIM
public static final int CENCRC
public static final int CENSIZ
public static final int CENLEN
public static final int CENNAM
public static final int CENEXT
public static final int CENCOM
public static final int CENDSK
public static final int CENATT
public static final int CENATX
public static final int CENOFF
public static final int ENDSUB
public static final int ENDTOT
public static final int ENDSIZ
public static final int ENDOFF
public static final int ENDCOM
| Constructor Detail |
|---|
public TeeZipOutputStream(ZipOutputStream out,
OutputStream branch)
out - the main OutputStreambranch - the second OutputStream| Method Detail |
|---|
public void write(byte[] b)
throws IOException
write in class FilterOutputStreamb - the bytes to write
IOException - if an I/O error occurs
public void write(byte[] b,
int off,
int len)
throws IOException
write in class ZipOutputStreamb - the bytes to writeoff - The start offsetlen - The number of bytes to write
IOException - if an I/O error occurs
public void write(int b)
throws IOException
write in class DeflaterOutputStreamb - the byte to write
IOException - if an I/O error occurs
public void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOException - if an I/O error occurs
public void close()
throws IOException
close in interface Closeableclose in class ZipOutputStreamIOException - if an I/O error occurs
public void putNextEntry(ZipEntry e)
throws IOException
putNextEntry in class ZipOutputStreamIOException
public void closeEntry()
throws IOException
closeEntry in class ZipOutputStreamIOExceptionpublic void setComment(String comment)
setComment in class ZipOutputStreampublic void setMethod(int method)
setMethod in class ZipOutputStreampublic void setLevel(int level)
setLevel in class ZipOutputStream
public void finish()
throws IOException
finish in class ZipOutputStreamIOException
protected void deflate()
throws IOException
deflate in class DeflaterOutputStreamIOExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
protected Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class Object
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||