public class BHiveIOUtil extends Object
| Constructor and Description |
|---|
BHiveIOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPlainDir(File file)
File 객체가 directory 인지 체크
|
static boolean |
isSymbolicLink(File file)
File 객체가 symbolic link 인지 체크
|
static byte[] |
readBytesToEnd(InputStream is)
InputStream에서 Byte[]을 끝까지 읽는다.
|
static String |
readStringToEnd(InputStream is)
InputStream에서 문자열을 끝까지 읽는다.
|
static String |
readStringToEnd(InputStream is,
String charsetName)
InputStream에서 문자열을 끝까지 읽는다.
|
public static String readStringToEnd(InputStream is) throws IOException
is - Inputstream 객체IOException - throws IO Exceptionpublic static String readStringToEnd(InputStream is, String charsetName) throws IOException
is - InputStream 객체charsetName - character set 값IOException - throws io exceptionpublic static byte[] readBytesToEnd(InputStream is) throws IOException
is - inputStream 객체IOException - throws io exceptionpublic static boolean isPlainDir(File file) throws IOException
file - File 객체IOException - throws io exceptionpublic static boolean isSymbolicLink(File file) throws IOException
file - File 객체IOException - throws io exceptionCopyright © 2018. All rights reserved.