|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.directj.jlogger.StreamOutput
This is a simple class that print logging information into a stream. The header and footer information are not handle. You can use this to write onto any type of ouput stream, including file or network. WARNING: This class just print the specified string, but without a NL\CR character. The formatter HAVE TO take care of 'NL\CR' ('\n' in java) char.
Nested Class Summary | |
private class |
StreamOutput.ShutdownHook
This class is used to close the stream at the end of the JVM. |
Field Summary | |
private java.io.OutputStream |
out
The output stream. |
Constructor Summary | |
StreamOutput(java.io.OutputStream _out)
Creates a new StreamOutput. |
Method Summary | |
boolean |
equals(java.lang.Object _obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
void |
print(java.lang.String _str)
Prints the info, using the output. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.io.OutputStream out
Constructor Detail |
public StreamOutput(java.io.OutputStream _out)
_out
- The outputStream where to write data.Method Detail |
public void print(java.lang.String _str)
print
in interface Output
_str
- The debugging info to print on the output.Formatter
public boolean equals(java.lang.Object _obj)
equals
in class java.lang.Object
_obj
- The reference object with which to compare.
boolean
- True if this object is the same as the obj argument; false otherwise.public int hashCode()
hashCode
in class java.lang.Object
int
- A hash code value for this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |