Class PaletteParser
- java.lang.Object
-
- org.nuxeo.theme.styling.service.palettes.PaletteParser
-
- Direct Known Subclasses:
PropertiesPaletteParser
public class PaletteParser extends Object
-
-
Constructor Summary
Constructors Constructor Description PaletteParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkSanity(byte[] bytes)
static Map<String,String>
parse(byte[] bytes, String filename)
static Map<String,String>
parse(InputStream in, String filename)
static Map<String,String>
parse(URL url)
static String
rgbToHex(int r, int g, int b)
-
-
-
Method Detail
-
checkSanity
public static boolean checkSanity(byte[] bytes)
-
rgbToHex
public static String rgbToHex(int r, int g, int b)
-
parse
public static Map<String,String> parse(InputStream in, String filename) throws IOException, PaletteParseException
- Throws:
IOException
PaletteParseException
-
parse
public static Map<String,String> parse(byte[] bytes, String filename) throws PaletteParseException
- Throws:
PaletteParseException
-
-