de.infinityloop.util.inout
Interface OutputstreamFactory

All Known Implementing Classes:
FileOutputstreamFactory

public interface OutputstreamFactory


Method Summary
 void closeOutputstream(java.io.OutputStream os)
          Closes an output stream.
 void closeOutputstream(java.io.Writer os)
          Closes an output stream.
 void endSession()
          Ends a session of subsequent output stream creations.
 java.io.OutputStream getOutputstream(java.lang.String name)
          Returns a new output stream for writing.
 void removeStreamSource(java.lang.String name)
          Removes the object behind a stream.
 void startSession()
          Starts a session of subsequent output stream creations.
 

Method Detail

startSession

void startSession()
Starts a session of subsequent output stream creations.


endSession

void endSession()
Ends a session of subsequent output stream creations.


getOutputstream

java.io.OutputStream getOutputstream(java.lang.String name)
                                     throws java.lang.Exception
Returns a new output stream for writing.

Throws:
java.lang.Exception

closeOutputstream

void closeOutputstream(java.io.OutputStream os)
                       throws java.lang.Exception
Closes an output stream.

Throws:
java.lang.Exception

closeOutputstream

void closeOutputstream(java.io.Writer os)
                       throws java.lang.Exception
Closes an output stream.

Throws:
java.lang.Exception

removeStreamSource

void removeStreamSource(java.lang.String name)
                        throws java.lang.Exception
Removes the object behind a stream.

Throws:
java.lang.Exception