Serializablepublic class Resource extends SMYLDObject
NEW_LINE, OS_NEW_LINE| Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebug, 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 SMYLD. All rights reserved.