Interface InputStreamSource
- All Superinterfaces:
OutputStreamSource
- All Known Implementing Classes:
BytesSource,BytesSupplierSource,GunzipBuilder,NullSource,PathSource,RawInputStreamSource,ZipEntrySource
可以将其想象成一个 BytesSupplier ,主要用来规范多种类型的数据来源 如文件 字节数组等
- Version:
- 2.0.4
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamSourceof()static InputStreamSourceof(byte[] bytes) static InputStreamSourceof(InputStream inputStream) static InputStreamSourcestatic InputStreamSourcestatic InputStreamSourcedefault byte[]toBytes()这样默认会比OutputStreamSource.toBytes()性能更高一些转换为 InputStreamdefault Stringdefault void写入到指定输出流Methods inherited from interface cool.scx.common.io_stream_source.OutputStreamSource
toFile
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
of
-
toInputStream
转换为 InputStream- Returns:
- InputStream
- Throws:
IOException- e
-
toBytes
这样默认会比OutputStreamSource.toBytes()性能更高一些- Specified by:
toBytesin interfaceOutputStreamSource- Returns:
- bytes
- Throws:
IOException- e
-
writeToOutputStream
Description copied from interface:OutputStreamSource写入到指定输出流- Specified by:
writeToOutputStreamin interfaceOutputStreamSource- Parameters:
out- 输出流- Throws:
IOException- e
-
toString
- Throws:
IOException
-