I am working in a project which is already developed. Now I have a task to generate excel file using Apache poi
API.
My problem is I have PrinWriter object available instead of OutputStream.
workbook.write(outputStream);
How to tackle this situation?