From 52c2f0c60ca5ff5d14d44415feed364830d8d7a3 Mon Sep 17 00:00:00 2001 From: Yeo Kheng Meng <yeokm1@yahoo.com.sg> Date: Sun, 1 Dec 2013 21:12:20 +0800 Subject: [PATCH] Removed unused file stream methods from converter --- .../docstopdfconverter/Converter.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/docs-to-pdf-converter/src/com/yeokhengmeng/docstopdfconverter/Converter.java b/docs-to-pdf-converter/src/com/yeokhengmeng/docstopdfconverter/Converter.java index 5d27307..75f0dea 100644 --- a/docs-to-pdf-converter/src/com/yeokhengmeng/docstopdfconverter/Converter.java +++ b/docs-to-pdf-converter/src/com/yeokhengmeng/docstopdfconverter/Converter.java @@ -1,8 +1,4 @@ package com.yeokhengmeng.docstopdfconverter; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -87,25 +83,6 @@ protected void finished(){ printMessages(String.format(SAVING_FORMAT, outputFilePath, prevProcessTook, timeTaken)); } - protected InputStream getInFileStream(String inputFilePath) throws FileNotFoundException{ - File inFile = new File(inputFilePath); - FileInputStream iStream = new FileInputStream(inFile); - return iStream; - } - - protected OutputStream getOutFileStream(String outputFilePath) throws IOException{ - File outFile = new File(outputFilePath); - - try{ - outFile.getParentFile().mkdirs(); - } catch (NullPointerException e){ - //Ignore error since it means not parent directories - } - - outFile.createNewFile(); - FileOutputStream oStream = new FileOutputStream(outFile); - return oStream; - } protected void printMessages(String toBePrinted){ if(showOutputMessages){