Class CommunicationLogFileOutputStream

java.lang.Object
java.io.OutputStream
org.somda.sdc.dpws.helper.CommunicationLogFileOutputStream
All Implemented Interfaces:
Closeable, Flushable, 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.