org.fcrepo.server.security.xacml.util
Class DataFileUtils
java.lang.Object
org.fcrepo.server.security.xacml.util.DataFileUtils
public class DataFileUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataFileUtils
public DataFileUtils()
getDocumentFromFile
public static Document getDocumentFromFile(File file)
throws Exception
- Throws:
Exception
loadFile
public static byte[] loadFile(String filename)
throws Exception
- Throws:
Exception
loadFile
public static byte[] loadFile(File file)
throws Exception
- Throws:
Exception
saveDocument
public static void saveDocument(String filename,
byte[] document)
throws Exception
- Throws:
Exception
saveDocument
public static void saveDocument(String filename,
Document doc)
throws Exception
- Throws:
Exception
format
public static String format(Document doc)
format
public static String format(byte[] document)
throws Exception
- Throws:
Exception
fedoraXMLHashFormat
public static byte[] fedoraXMLHashFormat(byte[] data)
throws Exception
- Throws:
Exception
getHash
public static String getHash(byte[] data)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
Copyright © 2012 DuraSpace. All Rights Reserved.