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 long
countBytes
protected boolean
deleteFile
protected DirectoryNode
dir
protected File
fileOut
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardCipherOutputStream(DirectoryNode dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
processPOIFSWriterEvent(POIFSWriterEvent event)
Process a POIFSWriterEvent that this listener had registered forvoid
write(byte[] b, int off, int len)
void
write(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:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-
processPOIFSWriterEvent
public void processPOIFSWriterEvent(POIFSWriterEvent event)
Description copied from interface:POIFSWriterListener
Process a POIFSWriterEvent that this listener had registered for- Specified by:
processPOIFSWriterEvent
in interfacePOIFSWriterListener
- Parameters:
event
- the POIFSWriterEvent
-
-