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

SetloadBlackList(String blackListPath)
load Black List
Set<String> blackList = new HashSet<String>();
try (BufferedReader br = new BufferedReader(new FileReader(new File(blackListPath)))) {
    for (String line; (line = br.readLine()) != null;) {
        String s = line.trim().toLowerCase();
        blackList.add(s);
return blackList;
...
HashSetloadBussinessGroupCompanies(String file_path)
load Bussiness Group Companies
FileInputStream fi = new FileInputStream(file_path);
InputStreamReader in = new InputStreamReader(fi, "big5");
BufferedReader br = new BufferedReader(in);
HashSet<String> result = new HashSet<String>();
String s = null;
while ((s = br.readLine()) != null) {
    s = s.substring(s.indexOf(":") + 1, s.length());
    String[] tokens = s.split(",");
...
double[][]loadByUsingSplit(String filename)
load By Using Split
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
return getDataFromReaderUsingSplit(br);
char[]loadClob(File f, String enc)
load Clob
char[] data = null;
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(f), enc));
char[] tmp = new char[4096];
int num = 0;
try {
    while ((num = br.read(tmp)) > 0) {
        if (data == null) {
            data = new char[num];
...
MaploadCommonMisspellingsFile(String commonMisspellingsFileLocation)
load Common Misspellings File
Map<String, String> commonMisspellingsMap = null;
if (commonMisspellingsFileLocation != null) {
    commonMisspellingsMap = new HashMap<String, String>();
    BufferedReader br = null;
    FileReader fr = null;
    try {
        fr = new FileReader(commonMisspellingsFileLocation);
        br = new BufferedReader(fr);
...
StringloadConfFile(String filename, String key)
load Conf File
BufferedReader fread = null;
try {
    fread = new BufferedReader(new InputStreamReader(new FileInputStream(filename), "UTF-8"));
    String line;
    while ((line = fread.readLine()) != null) {
        if (line.startsWith("#"))
            continue;
        if (line.startsWith(key + "="))
...
MaploadConfig(File conf)
load Config
Map<String, String> data = new HashMap<String, String>();
try (BufferedReader br = new BufferedReader(new FileReader(conf))) {
    String line;
    while ((line = br.readLine()) != null) {
        if (line.startsWith("#")) {
            continue;
        String[] args = line.split("=");
...
voidloadConfigProps(String configFile)
load Config Props
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(configFile)));
try {
    String line;
    while ((line = br.readLine()) != null) {
        String[] strArray = line.split("=");
        if (strArray.length != 2)
            continue;
        String prop = strArray[0];
...
StringloadContents(File file)
load Contents
if (file == null) {
    throw new IllegalArgumentException();
if (!file.exists() || file.isDirectory()) {
    return null;
BufferedReader br = null;
try {
...
String[]loadCredentials(File credentials)
Return the credentials in the file.
BufferedReader reader = null;
String login = null;
String password = null;
String token = null;
try {
    reader = new BufferedReader(new FileReader(credentials));
    login = readLine(reader);
    password = readLine(reader);
...