public class PaletteParser extends Object
Constructor and Description |
---|
PaletteParser() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkSanity(byte[] bytes) |
static PaletteFamily |
identifyPaletteType(byte[] bytes,
String filename) |
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 Map<String,String> |
parseCsv(String text) |
static String |
renderPaletteAsCsv(byte[] bytes,
String fileName) |
static String |
rgbToHex(int r,
int g,
int b) |
public static boolean checkSanity(byte[] bytes)
public static String rgbToHex(int r, int g, int b)
public static PaletteFamily identifyPaletteType(byte[] bytes, String filename) throws PaletteIdentifyException
PaletteIdentifyException
public static Map<String,String> parse(InputStream in, String filename) throws IOException, PaletteIdentifyException, PaletteParseException
public static Map<String,String> parse(byte[] bytes, String filename) throws PaletteIdentifyException, PaletteParseException
Copyright © 2015 Nuxeo SA. All rights reserved.