|
LogOutputStream (Apache Ant API)
org.apache.tools.ant.taskdefs
|
Constructor Summary | |
LogOutputStream(Task task,
int level)
Creates a new instance of this class. |
Method Summary | |
void |
close()
Writes all remaining |
int |
getMessageLevel()
|
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. |
void |
write(int cc)
Write the data to the buffer and flush the buffer, if a line separator is detected. |
Methods inherited from class java.io.OutputStream |
flush, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogOutputStream(Task task, int level)
task
- the task for whom to loglevel
- loglevel used to log data written to this stream.Method Detail |
public void write(int cc) throws java.io.IOException
write
in class java.io.OutputStream
cc
- data to log (byte).
java.io.IOException
protected void processBuffer()
processLine
protected void processLine(java.lang.String line)
line
- the line to log.protected void processLine(java.lang.String line, int level)
line
- the line to log.public void close() throws java.io.IOException
close
in class java.io.OutputStream
java.io.IOException
public int getMessageLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |