public class CipherOutputStream extends BaseOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected CRC32 |
crc |
protected FileHeader |
fileHeader |
protected LocalFileHeader |
localFileHeader |
protected OutputStream |
outputStream |
protected ZipModel |
zipModel |
protected ZipParameters |
zipParameters |
| Constructor and Description |
|---|
CipherOutputStream(OutputStream outputStream,
ZipModel zipModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeEntry() |
void |
decrementCompressedFileSize(int value) |
void |
finish() |
File |
getSourceFile() |
void |
putNextEntry(File file,
ZipParameters zipParameters) |
void |
setSourceFile(File sourceFile) |
protected void |
updateTotalBytesRead(int toUpdate) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int bval) |
flushprotected OutputStream outputStream
protected FileHeader fileHeader
protected LocalFileHeader localFileHeader
protected ZipParameters zipParameters
protected ZipModel zipModel
protected CRC32 crc
public CipherOutputStream(OutputStream outputStream, ZipModel zipModel)
public void putNextEntry(File file, ZipParameters zipParameters) throws ZipException
ZipExceptionpublic void write(int bval)
throws IOException
write in class BaseOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void closeEntry()
throws IOException,
ZipException
IOExceptionZipExceptionpublic void finish()
throws IOException,
ZipException
IOExceptionZipExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void decrementCompressedFileSize(int value)
protected void updateTotalBytesRead(int toUpdate)
public void setSourceFile(File sourceFile)
public File getSourceFile()
Copyright © 2013. All rights reserved.