mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
Provide a scratch buffer.
This commit is contained in:
parent
65fb06058c
commit
da6cf42803
1 changed files with 23 additions and 0 deletions
|
@ -49,6 +49,8 @@ public class ErrorParserManager extends OutputStream {
|
|||
private OutputStream outputStream;
|
||||
private StringBuffer currentLine = new StringBuffer();
|
||||
|
||||
private StringBuffer scratchBuffer = new StringBuffer();
|
||||
|
||||
public ErrorParserManager(ACBuilder builder) {
|
||||
this(builder.getProject(), builder);
|
||||
}
|
||||
|
@ -402,4 +404,25 @@ public class ErrorParserManager extends OutputStream {
|
|||
}
|
||||
return reset;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public String getScratchBuffer() {
|
||||
return scratchBuffer.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param line
|
||||
*/
|
||||
public void appendToScratchBuffer(String line) {
|
||||
scratchBuffer.append(line);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void clearScratchBuffer() {
|
||||
scratchBuffer.setLength(0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue