接口 OutputStreamSource
- 所有已知子接口:
WritableResource
- 所有已知实现类:
FileSystemResource,FileSystemResourceLoader.FileSystemContextResource,FileUrlResource,PathResource,WritableResourceDecorator
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
- 从以下版本开始:
- 2.1.6
- 作者:
- TODAY
2019-07-08 00:11
-
方法概要
修饰符和类型方法说明Return anOutputStreamfor the underlying resource, allowing to (over-)write its content.default WriterGetWriterdefault WritableByteChannelReturn aWritableByteChannel.
-
方法详细资料
-
getOutputStream
Return anOutputStreamfor the underlying resource, allowing to (over-)write its content.- 抛出:
IOException- if the stream could not be opened
-
getWriter
GetWriter- 抛出:
IOException- if the stream could not be opened
-
writableChannel
Return aWritableByteChannel.It is expected that each call creates a fresh channel.
The default implementation returns
Channels.newChannel(OutputStream)with the result ofgetOutputStream().- 返回:
- the byte channel for the underlying resource (must not be
null) - 抛出:
FileNotFoundException- if the underlying resource doesn't existIOException- if the content channel could not be opened- 另请参阅:
-