Class ManInputStreamExt


  • public class ManInputStreamExt
    extends Object
    • Constructor Detail

      • ManInputStreamExt

        public ManInputStreamExt()
    • Method Detail

      • reader

        public static InputStreamReader reader​(InputStream thiz)
        Creates a reader on this input stream using UTF-8 or the specified charset.
      • bufferedReader

        public static BufferedReader bufferedReader​(InputStream thiz)
        Creates a buffered reader on this input stream using UTF-8 or the specified charset.
      • copyTo

        public static long copyTo​(InputStream thiz,
                                  OutputStream out)
        Copies this stream to the given output stream, returning the number of bytes copied

        **Note** It is the caller's responsibility to close both of these resources.

      • copyTo

        public static long copyTo​(InputStream thiz,
                                  OutputStream out,
                                  int bufferSize)
        Copies this stream to the given output stream, returning the number of bytes copied

        **Note** It is the caller's responsibility to close both of these resources.