de.infinityloop.util.inout

Class FileOutputstreamFactory

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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 an 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileOutputstreamFactory

        public FileOutputstreamFactory()
    • Method Detail

      • startSession

        public void startSession()
        Starts a session of subsequent output stream creations.
        Specified by:
        startSession in interface OutputstreamFactory
      • endSession

        public void endSession()
        Ends a session of subsequent output stream creations.
        Specified by:
        endSession in interface OutputstreamFactory
      • getOutputstream

        public java.io.OutputStream getOutputstream(java.lang.String name)
                                             throws java.lang.Exception
        Returns an output stream for writing.
        Specified by:
        getOutputstream in interface OutputstreamFactory
        Throws:
        java.lang.Exception
      • closeOutputstream

        public void closeOutputstream(java.io.OutputStream os)
                               throws java.lang.Exception
        Closes an output stream.
        Specified by:
        closeOutputstream in interface OutputstreamFactory
        Throws:
        java.lang.Exception
      • closeOutputstream

        public void closeOutputstream(java.io.Writer os)
                               throws java.lang.Exception
        Closes an output stream.
        Specified by:
        closeOutputstream in interface OutputstreamFactory
        Throws:
        java.lang.Exception
      • removeStreamSource

        public void removeStreamSource(java.lang.String name)
                                throws java.lang.Exception
        Removes the object behind a stream.
        Specified by:
        removeStreamSource in interface OutputstreamFactory
        Throws:
        java.lang.Exception