com.alibaba.dubbo.common.io
Class StreamUtils

java.lang.Object
  extended by com.alibaba.dubbo.common.io.StreamUtils

public class StreamUtils
extends Object

Stream utils.

Author:
qian.lei, ding.lid

Method Summary
static InputStream limitedInputStream(InputStream is, int limit)
           
static InputStream markSupportedInputStream(InputStream is)
           
static InputStream markSupportedInputStream(InputStream is, int markBufferSize)
           
static void skipUnusedStream(InputStream is)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

limitedInputStream

public static InputStream limitedInputStream(InputStream is,
                                             int limit)
                                      throws IOException
Throws:
IOException

markSupportedInputStream

public static InputStream markSupportedInputStream(InputStream is,
                                                   int markBufferSize)

markSupportedInputStream

public static InputStream markSupportedInputStream(InputStream is)

skipUnusedStream

public static void skipUnusedStream(InputStream is)
                             throws IOException
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.