|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.apache.tools.ant.util.LineOrientedOutputStream
org.apache.tools.ant.taskdefs.LogOutputStream
public class LogOutputStream
Logs each line written to this stream to the log system of ant.
Tries to be smart about line separators.
| Constructor Summary | |
|---|---|
LogOutputStream(ProjectComponent pc)
Create a new LogOutputStream for the specified ProjectComponent. |
|
LogOutputStream(ProjectComponent pc,
int level)
Creates a new instance of this class. |
|
LogOutputStream(Task task,
int level)
Creates a new instance of this class. |
|
| Method Summary | |
|---|---|
int |
getMessageLevel()
Get the level. |
protected void |
processBuffer()
Converts the buffer to a string and sends it to processLine |
protected void |
processLine(java.lang.String line)
Logs a line to the log system of ant. |
protected void |
processLine(java.lang.String line,
int level)
Logs a line to the log system of ant. |
| Methods inherited from class org.apache.tools.ant.util.LineOrientedOutputStream |
|---|
close, flush, processLine, write, write |
| 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 |
| Constructor Detail |
|---|
public LogOutputStream(ProjectComponent pc)
pc - the project component for whom to log
public LogOutputStream(Task task,
int level)
task - the task for whom to loglevel - loglevel used to log data written to this stream.
public LogOutputStream(ProjectComponent pc,
int level)
pc - the project component for whom to loglevel - loglevel used to log data written to this stream.| Method Detail |
|---|
protected void processBuffer()
processLine
processBuffer in class LineOrientedOutputStreamprotected void processLine(java.lang.String line)
processLine in class LineOrientedOutputStreamline - the line to log.
protected void processLine(java.lang.String line,
int level)
line - the line to log.level - the logging level to use.public int getMessageLevel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||