Class StandardEncryptor.StandardCipherOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.docx4j.org.apache.poi.poifs.crypt.standard.StandardEncryptor.StandardCipherOutputStream
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,POIFSWriterListener
- Enclosing class:
- StandardEncryptor
protected class StandardEncryptor.StandardCipherOutputStream extends java.io.FilterOutputStream implements POIFSWriterListener
-
Field Summary
Fields Modifier and Type Field Description protected longcountBytesprotected DirectoryNodedirprotected java.io.FilefileOutFields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors Modifier Constructor Description protectedStandardCipherOutputStream(DirectoryNode dir) -
Method Summary
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, writeMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
countBytes
protected long countBytes -
fileOut
protected final java.io.File fileOut -
dir
-
-
Constructor Details
-
StandardCipherOutputStream
- Throws:
java.io.IOException
-
-
Method Details
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
processPOIFSWriterEvent
Description copied from interface:POIFSWriterListenerProcess a POIFSWriterEvent that this listener had registered for- Specified by:
processPOIFSWriterEventin interfacePOIFSWriterListener- Parameters:
event- the POIFSWriterEvent
-