pub struct BufferedInputStreamBuilder { /* private fields */ }Expand description
A builder-pattern type to construct BufferedInputStream objects.
Implementations§
Source§impl BufferedInputStreamBuilder
impl BufferedInputStreamBuilder
Sourcepub fn buffer_size(self, buffer_size: u32) -> Self
pub fn buffer_size(self, buffer_size: u32) -> Self
The size of the backend buffer, in bytes.
Sourcepub fn base_stream(self, base_stream: &impl IsA<InputStream>) -> Self
pub fn base_stream(self, base_stream: &impl IsA<InputStream>) -> Self
The underlying base stream on which the I/O ops will be done.
Sourcepub fn close_base_stream(self, close_base_stream: bool) -> Self
pub fn close_base_stream(self, close_base_stream: bool) -> Self
Whether the base stream should be closed when the filter stream is closed.
Sourcepub fn build(self) -> BufferedInputStream
pub fn build(self) -> BufferedInputStream
Build the BufferedInputStream.