Class StreamUtils


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

      Constructors 
      Constructor Description
      StreamUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copy​(java.io.Reader in, java.io.Writer out)  
      static java.io.Reader limit​(java.io.Reader in, long len)
      Creates a reader that will return -1 after len chars have been read.
      static java.io.Reader splice​(java.io.Reader one, java.io.Reader two)  
      static java.lang.String toString​(java.io.Reader in)  
      • Methods inherited from class java.lang.Object

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

      • StreamUtils

        public StreamUtils()
    • Method Detail

      • toString

        public static java.lang.String toString​(java.io.Reader in)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public static void copy​(java.io.Reader in,
                                java.io.Writer out)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • limit

        public static java.io.Reader limit​(java.io.Reader in,
                                           long len)
        Creates a reader that will return -1 after len chars have been read.
      • splice

        public static java.io.Reader splice​(java.io.Reader one,
                                            java.io.Reader two)