Class StandardEncryptor.StandardCipherOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.poi.poifs.crypt.standard.StandardEncryptor.StandardCipherOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,POIFSWriterListener
- Enclosing class:
- StandardEncryptor
protected class StandardEncryptor.StandardCipherOutputStream extends FilterOutputStream implements POIFSWriterListener
-
-
Field Summary
Fields Modifier and Type Field Description protected longcountBytesprotected booleandeleteFileprotected DirectoryNodedirprotected FilefileOut-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardCipherOutputStream(DirectoryNode dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidprocessPOIFSWriterEvent(POIFSWriterEvent event)Process a POIFSWriterEvent that this listener had registered forvoidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.FilterOutputStream
flush, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Field Detail
-
countBytes
protected long countBytes
-
fileOut
protected final File fileOut
-
dir
protected final DirectoryNode dir
-
deleteFile
protected final boolean deleteFile
-
-
Constructor Detail
-
StandardCipherOutputStream
protected StandardCipherOutputStream(DirectoryNode dir) throws IOException
- Throws:
IOException
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-
processPOIFSWriterEvent
public void processPOIFSWriterEvent(POIFSWriterEvent event)
Description copied from interface:POIFSWriterListenerProcess a POIFSWriterEvent that this listener had registered for- Specified by:
processPOIFSWriterEventin interfacePOIFSWriterListener- Parameters:
event- the POIFSWriterEvent
-
-