List of utility methods to do BufferedReader Read
List | loadCsvFile(String fileWithPath, String delimiter) Read a CSV file and put each line into the list. Vector<String[]> list = new Vector<String[]>(); if (delimiter == null || delimiter.equals("")) { delimiter = ","; BufferedReader reader = null; String readString; try { reader = new BufferedReader(new FileReader(new File(fileWithPath))); ... |
Collection | loadDataURLs(File f, Pattern p) load Data UR Ls Collection<String> s = new TreeSet<String>(); try { BufferedReader r = null; try { r = new BufferedReader(new FileReader(f)); String sLine; while ((sLine = r.readLine()) != null) { sLine = sLine.trim(); ... |
Set | loadDict(InputStream io, boolean case_sensitive) load Dict BufferedReader reader = new BufferedReader(new InputStreamReader(io, default_encoding)); final Set<String> dict = new HashSet<String>(); String newline = null; String test = null; while ((newline = reader.readLine()) != null) { test = newline.trim(); if (test.startsWith(COMMENT_CHAR) || test.length() == 0) { continue; ... |
Map | loadEnrichmentHits(File file) load Enrichment Hits Map<String, Integer> ret = new HashMap(); if (file == null) { return ret; try { BufferedReader r = null; try { r = new BufferedReader(new FileReader(file)); ... |
void | loadIgnorList() load Ignor List String s; ignor = new HashSet<String>(); try { BufferedReader r = new BufferedReader( new InputStreamReader(new FileInputStream("ignore.txt"), "windows-1251")); while (r.ready()) { s = r.readLine(); if (!s.equals("")) { ... |
String | loadInputStream(InputStream inputStream) load Input Stream StringBuffer result = new StringBuffer(); BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)); String line = reader.readLine(); while (line != null) { result.append(line).append('\n'); line = reader.readLine(); inputStream.close(); ... |
int | loadInt(BufferedReader br) load Int return Integer.parseInt(loadString(br));
|
List | loadIntegersFromFile(String filename) load Integers From File List<Integer> result = new ArrayList<Integer>(); BufferedReader reader = new BufferedReader(new FileReader(new File(filename))); String line; while ((line = reader.readLine()) != null) { result.add(Integer.parseInt(line.trim())); return result; |
String | loadIntoString(InputStream is) Writes all contents of the given InputStream to a String BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF8")); StringBuilder sb = new StringBuilder(); String line = null; try { while ((line = reader.readLine()) != null) { sb.append(line + "\n"); } catch (IOException e) { ... |
void | loadJCC() load JCC String base = getJCCPath("python"); String library = base + "/libjcc.so"; System.load(library); |