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

Stringload(File file)
load
try {
    BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
    String s = "";
    while (true) {
        String s1 = reader.readLine();
        if (s1 == null)
            break;
        s += s1;
...
Stringload(File pFile)
load
if (pFile == null || !pFile.canRead())
    return null;
FileReader in = null;
BufferedReader buf = null;
StringBuffer lString = new StringBuffer();
try {
    in = new FileReader(pFile);
    buf = new BufferedReader(in);
...
voidload(final Multimap map, final Reader source)
load
assert map != null;
assert source != null;
BufferedReader reader = new BufferedReader(source);
String line;
while ((line = reader.readLine()) != null) {
    String[] items = line.split("=", 2);
    String key = items[0].trim();
    String value = null;
...
Stringload(final String path, final String file)
load
InputStream stream = ClassLoader.getSystemClassLoader().getResourceAsStream(path + file);
BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
StringBuilder builder = new StringBuilder();
String line;
while ((line = reader.readLine()) != null) {
    builder.append(line);
reader.close();
...
Stringload(String filename)
load
StringBuilder sb = new StringBuilder();
String line;
try (BufferedReader br = new BufferedReader(new FileReader(filename))) {
    while ((line = br.readLine()) != null) {
        sb.append(line);
        sb.append(System.lineSeparator());
} catch (IOException e) {
...
ListloadAddressList(String filename)
load Address List
ArrayList<String> r = new ArrayList<>();
try {
    BufferedReader reader = new BufferedReader(new FileReader(filename));
    String t;
    while ((t = reader.readLine()) != null) {
        r.add(t);
} catch (IOException E) {
...
StringloadAFileToString2(File f)
load A File To String
InputStream is = null;
String ret = "";
if (f.exists()) {
    BufferedReader br = null;
    try {
        String line;
        is = new FileInputStream(f);
        InputStreamReader read = new InputStreamReader(is, "utf-8");
...
StringloadAPIKey(InputStream in)
load API Key
if (in == null) {
    throw new Exception("API key not found. Copy it to /src/test/resource/apiKey and try again.");
try (final BufferedReader br = new BufferedReader(new InputStreamReader(in, "UTF-8"))) {
    return br.readLine();
StringloadAuthFile(String fileName)
load Auth File
try {
    File file = new File(fileName);
    if (!file.exists())
        return null;
    BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
    StringBuffer buffer = new StringBuffer();
    String line = null;
    while ((line = in.readLine()) != null) {
...
StringloadBase64Object(BufferedReader rdr, String type)
WrappedObject.java Copyright (C) 1999, Claymore Systems, Inc.
if (null != findObject(rdr, type)) {
    return readBase64Object(rdr, type);
} else {
    return null;