1 36 37 package com.bluecubs.xinco.index.filetypes; 38 39 import java.io.BufferedReader ; 40 import java.io.File ; 41 import java.io.FileInputStream ; 42 import java.io.InputStreamReader ; 43 import java.io.Reader ; 44 45 public class XincoIndexText implements XincoIndexFileType { 46 47 public XincoIndexText() { 48 super(); 49 } 50 51 public Reader getFileContentReader(File f) { 52 Reader reader = null; 53 FileInputStream is =null; 54 try { 55 is = new FileInputStream (f); 56 reader = new BufferedReader (new InputStreamReader (is)); 57 } catch (Exception fe) { 60 if (reader != null) { 61 try { 62 reader.close(); 63 } catch (Exception re) {} 64 } 65 if (is != null) { 66 try { 67 is.close(); 68 } catch (Exception ise) {} 69 } 70 reader = null; 71 } 72 return reader; 73 } 74 75 public String getFileContentString(File f) { 76 return null; 77 } 78 79 } 80 | Popular Tags |