Package de.mhus.lib.core.vault
Class MVaultUtil
- java.lang.Object
-
- de.mhus.lib.core.vault.MVaultUtil
-
public class MVaultUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description MVaultUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TadaptTo(VaultEntry entry, Class<? extends T> ifc)Try to adapt the entry to the given class or interface.static voidcheckDefault(MVault vault)static StringgetType(String content)static MVaultloadDefault()static voidmain(String[] in)
-
-
-
Method Detail
-
loadDefault
public static MVault loadDefault()
-
checkDefault
public static void checkDefault(MVault vault)
-
main
public static void main(String[] in) throws IOException
- Throws:
IOException
-
adaptTo
public static <T> T adaptTo(VaultEntry entry, Class<? extends T> ifc) throws ParseException, de.mhus.lib.errors.NotSupportedException
Try to adapt the entry to the given class or interface.- Parameters:
entry-ifc-- Returns:
- The requested interface or class.
- Throws:
de.mhus.lib.errors.NotSupportedException- Thrown if the entry can't be adapted to the interface.ParseException
-
-