public class DsplCacheHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_FILE |
static String |
CACHE_FORMAT |
static String |
CACHE_ROOT |
static String |
HASH_FILE |
static Logger |
logger |
Constructor and Description |
---|
DsplCacheHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getCachedHash(Concept concept) |
static String |
getCachedHash(Slice slice) |
static File |
getCacheDirectory(Concept concept) |
static File |
getCacheDirectory(Slice slice) |
static File |
getCacheFile(Concept concept) |
static File |
getCacheFile(Slice slice) |
static String |
getCalculatedHash(Concept concept) |
static String |
getCalculatedHash(Slice slice) |
static PropertyTableData |
getTableData(Concept concept) |
static SliceTableData |
getTableData(Slice slice) |
static void |
writeHash(Concept concept,
String hash) |
static void |
writeHash(File directory,
String hash) |
static void |
writeHash(Slice slice,
String hash) |
public static final Logger logger
public static final String CACHE_ROOT
public static final String CACHE_FILE
public static final String CACHE_FORMAT
public static final String HASH_FILE
public static PropertyTableData getTableData(Concept concept) throws DsplException, JAXBException, IOException
DsplException
JAXBException
IOException
public static SliceTableData getTableData(Slice slice) throws DsplException, JAXBException, IOException
DsplException
JAXBException
IOException
public static File getCacheDirectory(Concept concept) throws DsplException, JAXBException, IOException
DsplException
JAXBException
IOException
public static File getCacheDirectory(Slice slice) throws DsplException, JAXBException, IOException
DsplException
JAXBException
IOException
public static File getCacheFile(Concept concept) throws DsplException, JAXBException, IOException, NoSuchAlgorithmException
public static File getCacheFile(Slice slice) throws DsplException, JAXBException, IOException, NoSuchAlgorithmException
public static String getCalculatedHash(Slice slice) throws DsplException, JAXBException, IOException, NoSuchAlgorithmException
public static String getCalculatedHash(Concept concept) throws DsplException, JAXBException, IOException, NoSuchAlgorithmException
public static String getCachedHash(Slice slice) throws DsplException, JAXBException, IOException
DsplException
JAXBException
IOException
public static String getCachedHash(Concept concept) throws DsplException, JAXBException, IOException
DsplException
JAXBException
IOException
public static void writeHash(Concept concept, String hash) throws IOException, DsplException, NoSuchAlgorithmException, JAXBException
public static void writeHash(Slice slice, String hash) throws IOException, DsplException, NoSuchAlgorithmException, JAXBException
public static void writeHash(File directory, String hash) throws IOException, DsplException, NoSuchAlgorithmException, JAXBException
Copyright © 2016 Metron, Inc.. All rights reserved.