com.objectwave.utility
Class DebugOutput

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--com.objectwave.utility.DebugOutput

public class DebugOutput
extends java.io.OutputStream

This type was created in VisualAge.


Field Summary
static int HIGH
           
static int LOW
           
static int MEDIUM
           
static int OFF
           
 
Constructor Summary
DebugOutput()
          DebugOutput constructor comment.
DebugOutput(int level)
          This method was created in VisualAge.
DebugOutput(int level, java.lang.String prefix)
          This method was created in VisualAge.
DebugOutput(int level, java.lang.String prefix, java.text.DateFormat dateFormat)
          This method was created in VisualAge.
 
Method Summary
 void close()
          This method was created in VisualAge.
 void flush()
          This method was created in VisualAge.
 java.text.DateFormat getDateFormat()
          This method was created in VisualAge.
static DebugOutput getDefault()
           
 boolean getIncludeThreadHash()
          This method was created in VisualAge.
 int getLevel()
          This method was created in VisualAge.
 java.io.OutputStream getOutputStream()
          This method was created in VisualAge.
protected  java.io.Writer getOutputWriter()
          This method was created in VisualAge.
 java.lang.String getPrefix()
          This method was created in VisualAge.
 void println(int level, java.lang.String string)
          Print
 void setDateFormat(java.text.DateFormat newValue)
          This method was created in VisualAge.
 void setIncludeThreadHash(boolean newValue)
          This method was created in VisualAge.
 void setLevel(int newValue)
          This method was created in VisualAge.
 void setOutputStream(java.io.OutputStream newValue)
          This method was created in VisualAge.
protected  void setOutputWriter(java.io.Writer newValue)
          This method was created in VisualAge.
 void setPrefix(java.lang.String newValue)
          This method was created in VisualAge.
 void write(byte[] b, int off, int len)
          This method was created in VisualAge.
 void write(int b)
          This method was created in VisualAge.
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF

public static final int OFF
See Also:
Constant Field Values

LOW

public static final int LOW
See Also:
Constant Field Values

MEDIUM

public static final int MEDIUM
See Also:
Constant Field Values

HIGH

public static final int HIGH
See Also:
Constant Field Values
Constructor Detail

DebugOutput

public DebugOutput()
DebugOutput constructor comment.


DebugOutput

public DebugOutput(int level)
This method was created in VisualAge.

Parameters:
level - int

DebugOutput

public DebugOutput(int level,
                   java.lang.String prefix)
This method was created in VisualAge.

Parameters:
level - int
prefix - java.lang.String

DebugOutput

public DebugOutput(int level,
                   java.lang.String prefix,
                   java.text.DateFormat dateFormat)
This method was created in VisualAge.

Parameters:
level - int
prefix - java.lang.String
dateFormat - java.text.DateFormat
Method Detail

close

public void close()
           throws java.io.IOException
This method was created in VisualAge.

Overrides:
close in class java.io.OutputStream
java.io.IOException

flush

public void flush()
           throws java.io.IOException
This method was created in VisualAge.

Overrides:
flush in class java.io.OutputStream
java.io.IOException

getDateFormat

public java.text.DateFormat getDateFormat()
This method was created in VisualAge.

Returns:
java.text.DateFormat

getDefault

public static DebugOutput getDefault()

getIncludeThreadHash

public boolean getIncludeThreadHash()
This method was created in VisualAge.

Returns:
boolean

getLevel

public int getLevel()
This method was created in VisualAge.

Returns:
int

getOutputStream

public java.io.OutputStream getOutputStream()
This method was created in VisualAge.

Returns:
java.io.OutputStream

getOutputWriter

protected java.io.Writer getOutputWriter()
This method was created in VisualAge.

Returns:
java.io.Writer

getPrefix

public java.lang.String getPrefix()
This method was created in VisualAge.

Returns:
java.lang.String

println

public void println(int level,
                    java.lang.String string)
Print

Parameters:
level - int
string - java.lang.String

setDateFormat

public void setDateFormat(java.text.DateFormat newValue)
This method was created in VisualAge.

Parameters:
newValue - java.text.DateFormat

setIncludeThreadHash

public void setIncludeThreadHash(boolean newValue)
This method was created in VisualAge.

Parameters:
newValue - boolean

setLevel

public void setLevel(int newValue)
This method was created in VisualAge.

Parameters:
newValue - int

setOutputStream

public void setOutputStream(java.io.OutputStream newValue)
This method was created in VisualAge.

Parameters:
newValue - java.io.OutputStream

setOutputWriter

protected void setOutputWriter(java.io.Writer newValue)
This method was created in VisualAge.

Parameters:
newValue - java.io.Writer

setPrefix

public void setPrefix(java.lang.String newValue)
This method was created in VisualAge.

Parameters:
newValue - java.lang.String

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
This method was created in VisualAge.

Overrides:
write in class java.io.OutputStream
Parameters:
b - byte[]
off - int
len - int
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
This method was created in VisualAge.

Specified by:
write in class java.io.OutputStream
Parameters:
b - int
java.io.IOException