org.apache.ant.antunit
Class LogContent

java.lang.Object
  extended by Resource
      extended by org.apache.ant.antunit.LogContent

public class LogContent
extends Resource

Exposes AntUnit log content as a (read-only) Resource.


Constructor Summary
LogContent()
          Create a new LogContent resource.
LogContent(Project p, LogLevel level)
          Create a new LogContent resource, specifying Project and log level.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.io.InputStream getInputStream()
           
 boolean isExists()
           
 void setLevel(LogLevel level)
          Set the desired log level.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogContent

public LogContent()
Create a new LogContent resource.


LogContent

public LogContent(Project p,
                  LogLevel level)
Create a new LogContent resource, specifying Project and log level. This constructor is provided primarily for convenience during programmatic usage.

Parameters:
level - the LogLevel.
Method Detail

setLevel

public void setLevel(LogLevel level)
Set the desired log level.

Parameters:
level - a LogLevel enumerated attribute.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

isExists

public boolean isExists()

equals

public boolean equals(java.lang.Object o)