in taverna-server-webapp/src/main/java/org/apache/taverna/server/master/utils/DerbyUtils.java [51:68]
public void write(char[] cbuf, int off, int len) throws IOException {
if (closed)
throw new EOFException();
if (!log.isInfoEnabled())
return;
sb.append(cbuf, off, len);
while (!closed) {
int idx = sb.indexOf("\n"), realIdx = idx;
if (idx < 0)
break;
char ch;
while (idx > 0 && ((ch = sb.charAt(idx - 1)) == '\r' || ch == ' ' || ch == '\t'))
idx--;
if (idx > 0)
log.info(sb.substring(0, idx));
sb.delete(0, realIdx + 1);
}
}