Class IOUtil


  • public class IOUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IOUtil()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeInput​(java.io.InputStream in)
      Closes the given input stream and ignores the IOException.
      static void closeInput​(java.io.Reader in)
      Closes the given Reader and ignores the IOException.
      static void closeQuietly​(java.io.Closeable obj)  
      void copyFileToStream​(java.io.File fin, java.io.OutputStream out)  
      void copyFileToStream​(java.io.File fin, java.io.OutputStream out, int copyBufferSize)  
      void copyStreamToFile​(java.io.InputStream in, java.io.File fout)  
      void copyStreamToFile​(java.io.InputStream in, java.io.File fout, int copyBufferSize)  
      static void copyStreamToStream​(java.io.InputStream in, java.io.OutputStream out)  
      static void copyStreamToStream​(java.io.InputStream in, java.io.OutputStream out, byte[] copyBuffer)  
      static void copyStreamToStream​(java.io.InputStream in, java.io.OutputStream out, int copyBufferSize)  
      static java.io.InputStream limit​(java.io.InputStream in, long limit)  
      static byte[] slurp​(java.io.InputStream in, int byteLimit)  
      static byte[] slurp​(java.io.InputStream in, int byteLimit, byte[] slurpBuffer)  
      static java.lang.String toUtf8String​(java.io.InputStream in)  
      static java.io.Reader utf8Reader​(java.io.InputStream in)  
      static java.io.Writer utf8Writer​(java.io.OutputStream out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait