net.lingala.zip4j.io
Class CipherOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.BaseOutputStream
net.lingala.zip4j.io.CipherOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Direct Known Subclasses:
- DeflaterOutputStream
public class CipherOutputStream
- extends BaseOutputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputStream
protected OutputStream outputStream
fileHeader
protected FileHeader fileHeader
localFileHeader
protected LocalFileHeader localFileHeader
zipParameters
protected ZipParameters zipParameters
zipModel
protected ZipModel zipModel
crc
protected CRC32 crc
CipherOutputStream
public CipherOutputStream(OutputStream outputStream,
ZipModel zipModel)
putNextEntry
public void putNextEntry(File file,
ZipParameters zipParameters)
throws ZipException
- Throws:
ZipException
write
public void write(int bval)
throws IOException
- Overrides:
write
in class BaseOutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
closeEntry
public void closeEntry()
throws IOException,
ZipException
- Throws:
IOException
ZipException
finish
public void finish()
throws IOException,
ZipException
- Throws:
IOException
ZipException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
decrementCompressedFileSize
public void decrementCompressedFileSize(int value)
updateTotalBytesRead
protected void updateTotalBytesRead(int toUpdate)
setSourceFile
public void setSourceFile(File sourceFile)
getSourceFile
public File getSourceFile()
Copyright © 2012. All Rights Reserved.