org.nuxeo.theme
Class Utils
java.lang.Object
org.nuxeo.theme.Utils
public final class Utils
- extends Object
listToCsv
public static String listToCsv(List<String> list)
csvToList
public static List<String> csvToList(String str)
throws IOException
- Throws:
IOException
contains
public static boolean contains(String[] array,
String value)
cleanUp
public static String cleanUp(String text)
readResourceAsBytes
public static byte[] readResourceAsBytes(String path)
throws IOException
- Throws:
IOException
readResourceAsString
public static String readResourceAsString(String path)
throws IOException
- Throws:
IOException
fetchUrl
public static byte[] fetchUrl(URL url)
writeFile
public static void writeFile(URL url,
String text)
throws IOException
- Throws:
IOException
loadProperties
public static void loadProperties(Properties properties,
String resourceName)
loadCss
public static void loadCss(Style style,
String cssSource,
String viewName)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.