|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.poscoict.glueframework.util.GlueFileResourceUtil
public class GlueFileResourceUtil
Resource FileÀÇ URLÀ» ó¸® ÇÏ´Â °øÅë ¸ðµâ.
Weblogic Server¿Í °°ÀÌ File.seperator¸¦ »ç¿ëÇÏÁö ¾Ê°í ÀÚü File Seperator¸¦ »ç¿ëÇÏ´Â WAS¿¡¼ File.seperator¿¡ ÇØ´ç ÇÏ´Â Seperator·Î º¯È¯ÇÏ¿© Resource¸¦ Á¦°ø
Constructor Summary | |
---|---|
GlueFileResourceUtil()
|
Method Summary | |
---|---|
static List<File> |
getListOfFiles(File dir)
ƯÁ¤ µð·ºÅ丮 ÀÌÇÏ¿¡ Á¸ÀçÇÏ´Â ¸ðµç ÆÄÀϸíÀ» °Ë»öÇؼ List CollectionÀ¸·Î ¸®ÅÏÇÑ´Ù. |
static List<File> |
getListOfFiles(File dir,
boolean isSub)
|
static URL |
getResource(String path)
ÇöÀç ThreadÀÇ Context¿¡ ÇØ´çÇÏ´Â Directory¿¡¼ path¸¦ URL·Î º¯È¯ÇÔ. |
static InputStream |
getResourceAsStream(String path)
ÇöÀç ThreadÀÇ Context¿¡ ÇØ´çÇÏ´Â Directory¿¡¼ path¸¦ URL·Î º¯È¯ÇÔ. |
static List<String> |
readFile(File file)
|
static List<String> |
readFile(File file,
Charset charset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlueFileResourceUtil()
Method Detail |
---|
public static URL getResource(String path) throws GlueException
path
- String File ¶Ç´Â Directory Path
GlueException
public static InputStream getResourceAsStream(String path) throws GlueException
path
- String File ¶Ç´Â Directory Path
GlueException
public static List<File> getListOfFiles(File dir)
dir
-
public static List<File> getListOfFiles(File dir, boolean isSub)
dir
- isSub
- - true ÇÏÀ§µð·ºÅ丮ÀÇ ÆÄÀÏ ¸®½ºÆ® Æ÷ÇÔ, false ÇöÀç µð·ºÅ丮ÀÇ ÆÄÀÏ ¸®½ºÆ®¸¸.
public static List<String> readFile(File file) throws GlueException
file
-
GlueException
public static List<String> readFile(File file, Charset charset) throws GlueException
file
- charset
-
GlueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |