Class CommunicationLogFileOutputStream

  • All Implemented Interfaces:
    java.io.Closeable , java.io.Flushable , java.lang.AutoCloseable

    
    public class CommunicationLogFileOutputStream
    extends OutputStream
                        

    OutputStream that buffers written bytes and performs post-processing.

    This stream implementation buffers written output to a byte array and writes a file once the stream is closed. During the post-processing step the CommunicationLogFileOutputStream does the following:

    • Tries to extract the SOAP action and writes the last part of the action to the file name in order to facilitate users to get an idea which contents are enclosed by a communication log file.
    • Pretty-prints the XML data.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void write(int b)
      void write(Array<byte> b, int off, int len)
      void flush()
      void close()
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • CommunicationLogFileOutputStream

        CommunicationLogFileOutputStream(File targetDirectory, String fileNamePrefix, boolean prettyPrint)