Java Utililty Methods Class Path Load

List of utility methods to do Class Path Load

Description

The list of methods to do Class Path Load are organized into topic(s).

Method

StringBuilderloadTextFromClassPath(Class cls, String filename)
load Text From Class Path
InputStream input = cls.getResourceAsStream(filename);
if (input == null)
    return null;
try {
    BufferedReader in = new BufferedReader(new InputStreamReader(input));
    StringBuilder sb = new StringBuilder(Math.max(1, input.available()));
    String s;
    while ((s = in.readLine()) != null)
...