类 IOUtils
- java.lang.Object
-
- com.alibaba.dubbo.common.utils.IOUtils
-
public class IOUtils extends Object
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidappendLines(File file, String[] lines)append lines.static Stringread(Reader reader)read string.static String[]readLines(File file)read lines.static String[]readLines(InputStream is)read lines.static longwrite(InputStream is, OutputStream os)write.static longwrite(InputStream is, OutputStream os, int bufferSize)write.static longwrite(Reader reader, Writer writer)write.static longwrite(Reader reader, Writer writer, int bufferSize)write.static longwrite(Writer writer, String string)write string.static voidwriteLines(File file, String[] lines)write lines.static voidwriteLines(OutputStream os, String[] lines)write lines.
-
-
-
方法详细资料
-
write
public static long write(InputStream is, OutputStream os) throws IOException
write.- 参数:
is- InputStream instance.os- OutputStream instance.- 返回:
- count.
- 抛出:
IOException
-
write
public static long write(InputStream is, OutputStream os, int bufferSize) throws IOException
write.- 参数:
is- InputStream instance.os- OutputStream instance.bufferSize- buffer size.- 返回:
- count.
- 抛出:
IOException
-
read
public static String read(Reader reader) throws IOException
read string.- 参数:
reader- Reader instance.- 返回:
- String.
- 抛出:
IOException
-
write
public static long write(Writer writer, String string) throws IOException
write string.- 参数:
writer- Writer instance.string- String.- 抛出:
IOException
-
write
public static long write(Reader reader, Writer writer) throws IOException
write.- 参数:
reader- Reader.writer- Writer.- 返回:
- count.
- 抛出:
IOException
-
write
public static long write(Reader reader, Writer writer, int bufferSize) throws IOException
write.- 参数:
reader- Reader.writer- Writer.bufferSize- buffer size.- 返回:
- count.
- 抛出:
IOException
-
readLines
public static String[] readLines(File file) throws IOException
read lines.- 参数:
file- file.- 返回:
- lines.
- 抛出:
IOException
-
readLines
public static String[] readLines(InputStream is) throws IOException
read lines.- 参数:
is- input stream.- 返回:
- lines.
- 抛出:
IOException
-
writeLines
public static void writeLines(OutputStream os, String[] lines) throws IOException
write lines.- 参数:
os- output stream.lines- lines.- 抛出:
IOException
-
writeLines
public static void writeLines(File file, String[] lines) throws IOException
write lines.- 参数:
file- file.lines- lines.- 抛出:
IOException
-
appendLines
public static void appendLines(File file, String[] lines) throws IOException
append lines.- 参数:
file- file.lines- lines.- 抛出:
IOException
-
-