Nuxeo Enterprise Platform 5.4

org.nuxeo.theme
Class Utils

java.lang.Object
  extended by org.nuxeo.theme.Utils

public final class Utils
extends Object


Method Summary
static String cleanUp(String text)
           
static boolean contains(String[] array, String value)
           
static List<String> csvToList(String str)
           
static byte[] fetchUrl(URL url)
           
static String listToCsv(List<String> list)
           
static void loadCss(Style style, String cssSource, String viewName)
           
static void loadProperties(Properties properties, String resourceName)
           
static byte[] readResourceAsBytes(String path)
           
static String readResourceAsString(String path)
           
static void writeFile(URL url, String text)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.