Class IoUtils


  • public final class IoUtils
    extends java.lang.Object
    Common utilities for working with io.
    • Constructor Summary

      Constructors 
      Constructor Description
      IoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(java.lang.Readable from, java.lang.Appendable to)
      Copies all content from from to to.
      static java.lang.String read​(java.lang.Readable readable)
      Reads all characters from readable.
      static java.lang.String read​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

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

      • IoUtils

        public IoUtils()
    • Method Detail

      • read

        public static java.lang.String read​(java.net.URL url)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public static java.lang.String read​(java.lang.Readable readable)
                                     throws java.io.IOException
        Reads all characters from readable.
        Throws:
        java.io.IOException
      • copy

        public static void copy​(java.lang.Readable from,
                                java.lang.Appendable to)
                         throws java.io.IOException
        Copies all content from from to to.
        Throws:
        java.io.IOException