public class GlueFileResourceUtil extends Object
Constructor and Description |
---|
GlueFileResourceUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
public static URL getResource(String path) throws GlueException
path
- String File ¶Ç´Â Directory PathGlueException
public static InputStream getResourceAsStream(String path) throws GlueException
path
- String File ¶Ç´Â Directory PathGlueException
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
Copyright © 2013–2019 POSCO ICT. All rights reserved.