Subversion Repositories SmartDukaan

Rev

Rev 22910 | Rev 22912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22910 Rev 22911
Line 231... Line 231...
231
 
231
 
232
		OutputStream outStream = null;
232
		OutputStream outStream = null;
233
		try {
233
		try {
234
			outStream = new FileOutputStream(policyFolderPath + File.separator + "invoice.pdf");
234
			outStream = new FileOutputStream(policyFolderPath + File.separator + "invoice.pdf");
235
			pdfInvoiceStream.writeTo(outStream);
235
			pdfInvoiceStream.writeTo(outStream);
-
 
236
			pdfInvoiceStream.flush();
236
		} catch (IOException e) {
237
		} catch (IOException e) {
237
			e.printStackTrace();
238
			e.printStackTrace();
238
		} finally {
239
		} finally {
239
			outStream.close();
240
			outStream.close();
240
			pdfInvoiceStream.close();
241
			pdfInvoiceStream.close();