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.
Auto Trait Implementations§
impl Freeze for DataOutputStreamBuilder
impl RefUnwindSafe for DataOutputStreamBuilder
impl !Send for DataOutputStreamBuilder
impl !Sync for DataOutputStreamBuilder
impl Unpin for DataOutputStreamBuilder
impl UnwindSafe for DataOutputStreamBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more