Package org.somda.sdc.dpws.helper
Class CommunicationLogFileOutputStream
java.lang.Object
java.io.OutputStream
org.somda.sdc.dpws.helper.CommunicationLogFileOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
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.
-
Constructor Summary
ConstructorsConstructorDescriptionCommunicationLogFileOutputStream(File targetDirectory, String fileNamePrefix, boolean prettyPrint) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
CommunicationLogFileOutputStream
-
-
Method Details
-
write
public void write(int b) - Specified by:
writein classOutputStream
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-