Class FileUtil


  • public class FileUtil
    extends java.lang.Object
    Utility methods for Java file handling.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] readBytes​(java.io.InputStream in)
      Read all bytes from the input stream.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • readBytes

        public static byte[] readBytes​(java.io.InputStream in)
                                throws java.io.IOException
        Read all bytes from the input stream.

        Note that using this method to read very large streams could cause out-of-memory exceptions and/or block for large periods of time.

        Throws:
        java.io.IOException