Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Removed unused file stream methods from converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeo Kheng Meng committed Dec 1, 2013
1 parent eed0854 commit 52c2f0c
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit 52c2f0c

Please sign in to comment.