Java Utililty Methods Class Path Load

List of utility methods to do Class Path Load

  1. HOME
  2. Java
  3. C
  4. Class Path Load

Description

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

Method

StringBuilder loadTextFromClassPath(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)
...

AltStyle によって変換されたページ (->オリジナル) /