com.foxinmy.weixin4j.util
Class IOUtil
java.lang.Object
com.foxinmy.weixin4j.util.IOUtil
public class IOUtil
- extends Object
IOUtil
- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
org.apache.commons.io.IOUtils
IOUtil
public IOUtil()
toByteArray
public static byte[] toByteArray(Reader input)
throws IOException
- Throws:
IOException
toByteArray
public static byte[] toByteArray(Reader input,
Charset encoding)
throws IOException
- Throws:
IOException
copy
public static void copy(Reader input,
OutputStream output,
Charset encoding)
throws IOException
- Throws:
IOException
copy
public static int copy(InputStream input,
OutputStream output)
throws IOException
- Throws:
IOException
toByteArray
public static byte[] toByteArray(InputStream input)
throws IOException
- Throws:
IOException
close
public static void close(Closeable stream)
Copyright © 2014–2017. All rights reserved.