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) |
flush
protected 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
ZipException
public void write(int bval) throws IOException
write
in class BaseOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void closeEntry() throws IOException, ZipException
IOException
ZipException
public void finish() throws IOException, ZipException
IOException
ZipException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void decrementCompressedFileSize(int value)
protected void updateTotalBytesRead(int toUpdate)
public void setSourceFile(File sourceFile)
public File getSourceFile()
Copyright © 2013. All rights reserved.