MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getResourceAsString

Method getResourceAsString

src/main/java/gate/util/Files.java:128–131  ·  view source on GitHub ↗

Get a resource from the GATE ClassLoader as a String. @param resourceName The resource to input.

(String resourceName)

Source from the content-addressed store, hash-verified

126 * @param resourceName The resource to input.
127 */
128 public static String getResourceAsString(String resourceName)
129 throws IOException {
130 return getResourceAsString(resourceName, null);
131 }
132
133 /** Get a resource from the GATE ClassLoader as a String.
134 * @param encoding The encoding of the reader used to input the file

Callers

nothing calls this directly

Calls 4

getResourceAsStreamMethod · 0.95
readMethod · 0.65
closeMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected