Package org.openas2.remote
Class SocketLogging
- java.lang.Object
-
- org.openas2.remote.SocketLogging
-
public class SocketLogging extends java.lang.Object- Author:
- joseph mcverry - american coders, ltd.
to be used with the web server
-
-
Constructor Summary
Constructors Constructor Description SocketLogging(int port)builds the server socket
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidlogToPrintStream(java.io.PrintStream out, java.lang.String addOn)get the logging data from the socket print data to the stream add a new line character if told to repeatstatic voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
logToPrintStream
public void logToPrintStream(java.io.PrintStream out, java.lang.String addOn) throws java.io.IOExceptionget the logging data from the socket print data to the stream add a new line character if told to repeat- Parameters:
out- - PrintStream object to log toaddOn- - after each logging event add a new line ?- Throws:
java.io.IOException- - socket or io errors are possible
-
close
public void close()
-
-