//output = sb.toString();
bos.flush();
output = new String(bos.toByteArray());
}
catch (Exception e) {
throw new FitsToolCLIException("Error calling external command line routine",e);
}
finally {
try {
bos.close();
} catch (IOException e) {
throw new FitsToolCLIException("Error closing external command line output stream",e);
}
}
return output;
}