Package com.google.gwt.core.ext.linker
Class LinkerUtils
java.lang.Object
com.google.gwt.core.ext.linker.LinkerUtils
Utility methods for Linkers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the contents of a file from the class path as a String.
-
Method Details
-
readClasspathFileAsString
Gets the contents of a file from the class path as a String. Note: this method is only guaranteed to work for resources in the same class loader that contains thisLinkerUtilsclass.- Parameters:
path- the partial path to the resource on the class path- Returns:
- the contents of the file
- Throws:
IOException- if the file could not be found or an error occurred while reading it
-