Package com.alibaba.nacos.common.util
Class IoUtils
- java.lang.Object
-
- com.alibaba.nacos.common.util.IoUtils
-
public class IoUtils extends Object
IO related tool methods- Author:
- nacos
-
-
Constructor Summary
Constructors Constructor Description IoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>readLines(Reader input)static byte[]tryDecompress(InputStream raw)static voidwriteStringToFile(File file, String data, String encoding)
-
-
-
Method Detail
-
tryDecompress
public static byte[] tryDecompress(InputStream raw) throws Exception
- Throws:
Exception
-
writeStringToFile
public static void writeStringToFile(File file, String data, String encoding) throws IOException
- Throws:
IOException
-
readLines
public static List<String> readLines(Reader input) throws IOException
- Throws:
IOException
-
-