pub struct DataOutputStreamBuilder { /* private fields */ }Expand description
A builder-pattern type to construct DataOutputStream objects.
Implementations§
Source§impl DataOutputStreamBuilder
impl DataOutputStreamBuilder
Sourcepub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
pub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.
Sourcepub fn base_stream(self, base_stream: &impl IsA<OutputStream>) -> Self
pub fn base_stream(self, base_stream: &impl IsA<OutputStream>) -> 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) -> DataOutputStream
pub fn build(self) -> DataOutputStream
Build the DataOutputStream.