Package org.eclipse.osgi.storagemanager
Class ManagedOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.eclipse.osgi.storagemanager.ManagedOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
Represents a managed output stream for target managed by a storage manager.
- Since:
- 3.2
- See Also:
- 
Field SummaryFields inherited from class java.io.FilterOutputStreamout
- 
Method SummaryMethods inherited from class java.io.FilterOutputStreamflush, write, writeMethods inherited from class java.io.OutputStreamnullOutputStream
- 
Method Details- 
closeInstructs this output stream to be closed and storage manager to be updated as appropriate. If this managed output stream is part of a set returned byStorageManager.getOutputStreamSet(String[])then the storage manager will only be updated with the new content after all of the managed output streams in the set are closed successfully.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterOutputStream
- Throws:
- IOException
- See Also:
 
- 
abortpublic void abort()Instructs this output stream to be closed and the contents discarded. If this managed output stream is part of a set returned byStorageManager.getOutputStreamSet(String[])then the new content of all managed output streams in the set will be discarded.
- 
write- Overrides:
- writein class- FilterOutputStream
- Throws:
- IOException
 
 
-