org.asteriskjava.util.internal
Class FileTrace
java.lang.Object
org.asteriskjava.util.internal.FileTrace
- All Implemented Interfaces:
- Trace
public class FileTrace
- extends java.lang.Object
- implements Trace
Writes a trace file to the file system.
Constructor Summary |
FileTrace(java.net.Socket socket)
|
Method Summary |
protected java.lang.String |
format(java.lang.String prefix,
java.lang.String s)
|
protected void |
print(java.lang.String s)
|
void |
received(java.lang.String s)
Writes data that has been received from the network to the trace. |
void |
sent(java.lang.String s)
Writes data that has been sent to the network to the trace. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRACE_DIRECTORY_PROPERTY
public static final java.lang.String TRACE_DIRECTORY_PROPERTY
- See Also:
- Constant Field Values
FILE_PREFIX
protected static final java.lang.String FILE_PREFIX
- See Also:
- Constant Field Values
FILE_SUFFIX
protected static final java.lang.String FILE_SUFFIX
- See Also:
- Constant Field Values
FileTrace
public FileTrace(java.net.Socket socket)
throws java.io.IOException
- Throws:
java.io.IOException
received
public void received(java.lang.String s)
- Description copied from interface:
Trace
- Writes data that has been received from the network to the trace.
- Specified by:
received
in interface Trace
- Parameters:
s
- the String that has been received.
sent
public void sent(java.lang.String s)
- Description copied from interface:
Trace
- Writes data that has been sent to the network to the trace.
- Specified by:
sent
in interface Trace
- Parameters:
s
- the String that has been sent.
format
protected java.lang.String format(java.lang.String prefix,
java.lang.String s)
print
protected void print(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.