Class LinkerUtils

java.lang.Object
com.google.gwt.core.ext.linker.LinkerUtils

public class LinkerUtils extends Object
Utility methods for Linkers.
  • Method Details

    • readClasspathFileAsString

      public static String readClasspathFileAsString(String path) throws IOException
      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 this LinkerUtils class.
      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