Java Utililty Methods BufferedReader Read

List of utility methods to do BufferedReader Read

Description

The list of methods to do BufferedReader Read are organized into topic(s).

Method

ListloadCsvFile(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)));
...
CollectionloadDataURLs(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();
...
SetloadDict(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;
...
MaploadEnrichmentHits(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));
...
voidloadIgnorList()
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("")) {
...
StringloadInputStream(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();
...
intloadInt(BufferedReader br)
load Int
return Integer.parseInt(loadString(br));
ListloadIntegersFromFile(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;
StringloadIntoString(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) {
...
voidloadJCC()
load JCC
String base = getJCCPath("python");
String library = base + "/libjcc.so";
System.load(library);