Class NullSource
java.lang.Object
cool.scx.common.io_stream_source.NullSource
- All Implemented Interfaces:
InputStreamSource,OutputStreamSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]toBytes()这样默认会比OutputStreamSource.toBytes()性能更高一些voidtoFile(Path outputPath, OpenOption... options) 转换为 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
toString
-
Constructor Details
-
NullSource
public NullSource()
-
-
Method Details
-
toInputStream
Description copied from interface:InputStreamSource转换为 InputStream- Specified by:
toInputStreamin interfaceInputStreamSource- Returns:
- InputStream
- Throws:
IOException- e
-
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
-
toFile
- Specified by:
toFilein interfaceOutputStreamSource- Throws:
IOException
-