Package org.apache.dubbo.common.io
Class StreamUtils
java.lang.Object
org.apache.dubbo.common.io.StreamUtils
Stream utils.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(ByteArrayInputStream in, OutputStream out) static voidcopy(InputStream in, OutputStream out) static InputStreamlimitedInputStream(InputStream is, int limit) static InputStreamstatic InputStreammarkSupportedInputStream(InputStream is, int markBufferSize) static byte[]static byte[]readBytes(InputStream in) static voidstatic StringtoString(InputStream in) static StringtoString(InputStream in, Charset charset)
-
Field Details
-
EMPTY
-
-
Method Details
-
limitedInputStream
- Throws:
IOException
-
markSupportedInputStream
-
markSupportedInputStream
-
skipUnusedStream
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
toString
- Throws:
IOException
-
toString
- Throws:
IOException
-