Asterisk-Java

org.asteriskjava.util.internal
Class FileTrace

java.lang.Object
  extended by 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.


Field Summary
protected static java.lang.String FILE_PREFIX
           
protected static java.lang.String FILE_SUFFIX
           
static java.lang.String TRACE_DIRECTORY_PROPERTY
           
 
Fields inherited from interface org.asteriskjava.util.internal.Trace
TRACE_PROPERTY
 
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
 

Field Detail

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
Constructor Detail

FileTrace

public FileTrace(java.net.Socket socket)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.