org.bbqjs.compiler.util
Class Utils
java.lang.Object
org.bbqjs.compiler.util.Utils
public class Utils
- extends Object
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
getFileContents
public static String getFileContents(String path)
getFileContents
public static String getFileContents(File file)
getFileContents
public static String getFileContents(URL file)
getFileContents
public static String getFileContents(InputStream file)
fileNameWithoutExtension
public static String fileNameWithoutExtension(File file)
getJavaScriptClassName
public static String getJavaScriptClassName(URL javaScriptInputFile,
String jsDirectory)
findFile
public static URL findFile(String path,
String[] sourceRoots)
throws IOException
- Throws:
IOException
findFile
public static URL findFile(String path,
String sourceRoot)
throws IOException
- Throws:
IOException
findFile
public static URL findFile(String path,
String sourceRoot,
Locale locale,
String extension)
throws IOException
- Throws:
IOException
findFileOnClassPath
public static URL findFileOnClassPath(String path)
throws IOException
- Throws:
IOException
findFileFromFile
public static URL findFileFromFile(String path,
String sourceRoot)
throws IOException
- Throws:
IOException
Copyright © 2012. All Rights Reserved.