com.alibaba.dubbo.common.io
Class StreamUtils
java.lang.Object
com.alibaba.dubbo.common.io.StreamUtils
public class StreamUtils
- extends Object
Stream utils.
- Author:
- qian.lei, ding.lid
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.