public class DataFileUtils extends Object
| Constructor and Description |
|---|
DataFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
fedoraXMLHashFormat(byte[] data) |
static String |
format(byte[] document) |
static String |
format(Document doc) |
static Document |
getDocumentFromFile(File file) |
static String |
getHash(byte[] data) |
static byte[] |
loadFile(File file) |
static byte[] |
loadFile(String filename) |
static void |
saveDocument(String filename,
byte[] document) |
static void |
saveDocument(String filename,
Document doc) |
public static Document getDocumentFromFile(File file) throws Exception
Exceptionpublic static void saveDocument(String filename, byte[] document) throws Exception
Exceptionpublic static void saveDocument(String filename, Document doc) throws Exception
Exceptionpublic static byte[] fedoraXMLHashFormat(byte[] data)
throws Exception
Exceptionpublic static String getHash(byte[] data) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright © 2013 DuraSpace. All Rights Reserved.