try {
_debug("getAndReset: Gobbler '" + getName() + "' Ready: "
+ _inputStreamReader.ready() + " Available: "
+ _inputStream.available());
} catch (Exception ex) {
throw new InternalErrorException(ex);
}
}
try {
// Read any remaining data.
_read();
} catch (Throwable throwable) {
if (_debugging) {
_debug("WARNING: getAndReset(): _read() threw an "
+ "exception, which we are ignoring.\n"
+ throwable.getMessage());
}
}
String results = _stringBuffer.toString();
_stringBuffer = new StringBuffer();
try {
_inputStreamReader.close();
} catch (Exception ex) {
throw new InternalErrorException(null, ex, getName()
+ " failed to close.");
}
return results;
}