Class InputStreamUtils


  • public final class InputStreamUtils
    extends java.lang.Object
    Deprecated.
    -- use com.mchange.v1.io.InputStreamUtils
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void attemptClose​(java.io.InputStream is)
      Deprecated.
       
      static void attemptClose​(java.io.InputStream is, RobustMessageLogger logger)
      Deprecated.
       
      static boolean compare​(java.io.InputStream is1, java.io.InputStream is2)
      Deprecated.
       
      static boolean compare​(java.io.InputStream is1, java.io.InputStream is2, long num_bytes)
      Deprecated.
       
      static byte[] getBytes​(java.io.InputStream is)
      Deprecated.
       
      static byte[] getBytes​(java.io.InputStream is, int max_len)
      Deprecated.
       
      static java.lang.String getContentsAsString​(java.io.InputStream is)
      Deprecated.
       
      static java.lang.String getContentsAsString​(java.io.InputStream is, int max_len)
      Deprecated.
       
      static java.lang.String getContentsAsString​(java.io.InputStream is, int max_len, java.lang.String enc)
      Deprecated.
       
      static java.lang.String getContentsAsString​(java.io.InputStream is, java.lang.String enc)
      Deprecated.
       
      static java.io.InputStream getEmptyInputStream()
      Deprecated.
       
      static void skipFully​(java.io.InputStream is, long num_bytes)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • compare

        public static boolean compare​(java.io.InputStream is1,
                                      java.io.InputStream is2,
                                      long num_bytes)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • compare

        public static boolean compare​(java.io.InputStream is1,
                                      java.io.InputStream is2)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getBytes

        public static byte[] getBytes​(java.io.InputStream is,
                                      int max_len)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getBytes

        public static byte[] getBytes​(java.io.InputStream is)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getContentsAsString

        public static java.lang.String getContentsAsString​(java.io.InputStream is,
                                                           java.lang.String enc)
                                                    throws java.io.IOException,
                                                           java.io.UnsupportedEncodingException
        Deprecated.
        Throws:
        java.io.IOException
        java.io.UnsupportedEncodingException
      • getContentsAsString

        public static java.lang.String getContentsAsString​(java.io.InputStream is)
                                                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getContentsAsString

        public static java.lang.String getContentsAsString​(java.io.InputStream is,
                                                           int max_len,
                                                           java.lang.String enc)
                                                    throws java.io.IOException,
                                                           java.io.UnsupportedEncodingException
        Deprecated.
        Throws:
        java.io.IOException
        java.io.UnsupportedEncodingException
      • getContentsAsString

        public static java.lang.String getContentsAsString​(java.io.InputStream is,
                                                           int max_len)
                                                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • getEmptyInputStream

        public static java.io.InputStream getEmptyInputStream()
        Deprecated.
      • attemptClose

        public static void attemptClose​(java.io.InputStream is)
        Deprecated.
      • attemptClose

        public static void attemptClose​(java.io.InputStream is,
                                        RobustMessageLogger logger)
        Deprecated.
      • skipFully

        public static void skipFully​(java.io.InputStream is,
                                     long num_bytes)
                              throws java.io.EOFException,
                                     java.io.IOException
        Deprecated.
        Throws:
        java.io.EOFException
        java.io.IOException