public class Resource extends SMYLDObject
NEW_LINE, OS_NEW_LINE| Modifier and Type | Method and Description |
|---|---|
void |
exportResourceFile(String fileName,
String targetPath) |
File |
getFile(String resourceName) |
Image |
getImage(String imageName) |
ImageIcon |
getImageIcon(String imageName) |
static Resource |
getInstance() |
static Resource |
getInstance(String ClassPath) |
URL |
getResource(String resourceName) |
InputStream |
getResourceInputStream(String resourceName) |
debug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic Resource()
public Resource(String ClassPath) throws ClassNotFoundException
ClassNotFoundExceptionpublic static Resource getInstance(String ClassPath) throws ClassNotFoundException
ClassNotFoundExceptionpublic static Resource getInstance()
public InputStream getResourceInputStream(String resourceName)
public File getFile(String resourceName) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionCopyright © 2019 com.github.mfjamil. All rights reserved.