Package cool.scx.common.io_stream_source
Class RawInputStreamSource
java.lang.Object
cool.scx.common.io_stream_source.RawInputStreamSource
- All Implemented Interfaces:
InputStreamSource,OutputStreamSource
- Direct Known Subclasses:
ScxHttpClientResponseBody
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]toBytes()这样默认会比OutputStreamSource.toBytes()性能更高一些转换为 InputStreamvoid写入到指定输出流Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.common.io_stream_source.InputStreamSource
toStringMethods inherited from interface cool.scx.common.io_stream_source.OutputStreamSource
toFile
-
Constructor Details
-
RawInputStreamSource
-
-
Method Details
-
toInputStream
Description copied from interface:InputStreamSource转换为 InputStream- Specified by:
toInputStreamin interfaceInputStreamSource- Returns:
- InputStream
-
writeToOutputStream
Description copied from interface:OutputStreamSource写入到指定输出流- Specified by:
writeToOutputStreamin interfaceInputStreamSource- Specified by:
writeToOutputStreamin interfaceOutputStreamSource- Parameters:
out- 输出流- Throws:
IOException- e
-
toBytes
Description copied from interface:InputStreamSource这样默认会比OutputStreamSource.toBytes()性能更高一些- Specified by:
toBytesin interfaceInputStreamSource- Specified by:
toBytesin interfaceOutputStreamSource- Returns:
- bytes
- Throws:
IOException- e
-