pub struct DataInputStreamBuilder { /* private fields */ }Expand description
A builder-pattern type to construct DataInputStream objects.
Implementations§
Source§impl DataInputStreamBuilder
impl DataInputStreamBuilder
Sourcepub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
pub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
The :byte-order property determines the byte ordering that is used when reading multi-byte entities (such as integers) from the stream.
Sourcepub fn newline_type(self, newline_type: DataStreamNewlineType) -> Self
pub fn newline_type(self, newline_type: DataStreamNewlineType) -> Self
The :newline-type property determines what is considered as a line ending when reading complete lines from the stream.
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) -> DataInputStream
pub fn build(self) -> DataInputStream
Build the DataInputStream.