| Modifier and Type | Method and Description |
|---|---|
static License |
readLicense(String resource,
Class<?> base)
Try and read the passed resource as a License.
|
static String |
readLicenseEncodedString(String resource,
Class<?> base)
Try and read the passed resource as an encoded license string.
|
public static String readLicenseEncodedString(String resource, Class<?> base)
Class.getResourceAsStream(String) on base.ClassLoader.getResourceAsStream(String) on base.getClassLoader().A runtime exception will be thrown if the license cannot be found.
resource - the resource to read.base - the class that will be used to resolve the resource.RuntimeException - if the license cannot be found.public static License readLicense(String resource, Class<?> base)
Class.getResourceAsStream(String) on base.ClassLoader.getResourceAsStream(String) on base.getClassLoader().A runtime exception will be thrown if the license cannot be found.
resource - the resource to read.base - the class that will be used to resolve the resource.RuntimeException - if the license cannot be found.Copyright © 2002-2017 Atlassian. All Rights Reserved.