| java.lang.Object java.io.OutputStream org.apache.tools.ant.module.spi.AntOutputStream
AntOutputStream | abstract public class AntOutputStream extends OutputStream (Code) | | OutputStream for wrapping output of Ant task and capable of
parsing Ant output.
since: 2.15 |
Method Summary | |
final public void | close() | final public void | flush() | protected String | formatMessage(String fileName, String message, int line1, int col1, int line2, int col2) Create well formated message from the parsed information. | protected void | handleClose() This method is called when the stream is closed and it allows
entensions of this class to do additional tasks. | final public void | write(byte[] b) | final public void | write(byte[] b, int offset, int length) | final public void | write(int b) | protected boolean | writeLine(String line, URL file, int line1, int col1, int line2, int col2, String message) Write one line of the parsed text (must be overridden). | protected void | writeLine(String line, FileObject file, int line1, int col1, int line2, int col2, String message) Write one line of the parsed text. | abstract protected void | writeLine(String line) Write one line of text which was not parsed. |
formatMessage | protected String formatMessage(String fileName, String message, int line1, int col1, int line2, int col2)(Code) | | Create well formated message from the parsed information.
|
handleClose | protected void handleClose() throws IOException(Code) | | This method is called when the stream is closed and it allows
entensions of this class to do additional tasks.
For example, closing an underlying stream, etc.
The default implementation does nothing.
|
write | final public void write(byte[] b, int offset, int length) throws IOException(Code) | | |
writeLine | protected boolean writeLine(String line, URL file, int line1, int col1, int line2, int col2, String message) throws IOException(Code) | | Write one line of the parsed text (must be overridden).
All line and column parameters can be -1 meaning
that the value was not available or parsing was not successful.
Parameters: line - original text of the line Parameters: file - file location for which this line was generated Parameters: line1 - starting line of the message Parameters: col1 - starting column of the message Parameters: line2 - ending line of the message Parameters: col2 - ending column of the message Parameters: message - message must always return true since: org.apache.tools.ant.module/3 3.10 |
writeLine | protected void writeLine(String line, FileObject file, int line1, int col1, int line2, int col2, String message) throws IOException(Code) | | Write one line of the parsed text. All line and column parameters can be -1 what means
that value was not available or parsing was not successful.
Parameters: line - original text of the line Parameters: file - file object for which this line was generated Parameters: line1 - starting line of the message Parameters: col1 - starting column of the message Parameters: line2 - ending line of the message Parameters: col2 - ending column of the message Parameters: message - message |
writeLine | abstract protected void writeLine(String line) throws IOException(Code) | | Write one line of text which was not parsed.
|
|
|