public class PolicyUtils extends Object
| Constructor and Description |
|---|
PolicyUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
fileToString(File f)
Read file and return contents as a string
|
Map<String,String> |
getDocumentMetadata(byte[] docData) |
Map<String,String> |
getDocumentMetadata(InputStream docIS)
Obtains the metadata for the given document.
|
String |
getPolicyName(File policy) |
String |
getPolicyName(String policy) |
public String fileToString(File f) throws MelcoePDPException
f - File to readPolicyStoreExceptionMelcoePDPExceptionpublic String getPolicyName(File policy) throws MelcoePDPException
MelcoePDPExceptionpublic String getPolicyName(String policy) throws MelcoePDPException
MelcoePDPExceptionpublic Map<String,String> getDocumentMetadata(InputStream docIS)
docIS - the document as an InputStreamCopyright © 2013 DuraSpace. All Rights Reserved.