com.foxinmy.weixin4j.util
Class IOUtil

java.lang.Object
  extended by 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

Constructor Summary
IOUtil()
           
 
Method Summary
static void close(Closeable stream)
           
static int copy(InputStream input, OutputStream output)
           
static void copy(Reader input, OutputStream output, Charset encoding)
           
static byte[] toByteArray(InputStream input)
           
static byte[] toByteArray(Reader input)
           
static byte[] toByteArray(Reader input, Charset encoding)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

public IOUtil()
Method Detail

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.