Implements a xtd::io::text_writer for writing characters to a stream.
- Namespace
- xtd::io
- Library
- xtd.core
|
| stream_writer (const xtd::ustring &path) |
| Initializes a new instance of the stream_writer class for the specified file name.
|
|
| stream_writer (const xtd::ustring &path, bool append) |
| Initializes a new instance of the System::IO::StreamWriter class for the specified file on the specified path, using the default encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file.
|
|
| stream_writer (std::ostream &stream) |
| Initializes a new instance of the stream_writer class for the specified stream.
|
|
| stream_writer (std::ostream &stream, bool append) |
| Initializes a new instance of the stream_writer class for the specified stream.
|
|
bool | auto_flush () const |
|
void | auto_flush (bool auto_flush) |
|
std::optional< std::reference_wrapper< std::ostream > > | base_stream () const |
| Returns the underlying stream.
|
|
void | close () override |
| Closes the stream_writer object and the underlying stream, and releases any system resources associated with the reader.
|
|
void | flush () override |
| Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
|
|
void | write (bool value) |
| Writes the specified bool value to the text stream.
|
|
template<typename ... args_t> |
void | write (const xtd::ustring &fmt, args_t &&... args) noexcept |
| Writes the specified arguments with specified format to the text stream.
|
|
virtual void | write (const xtd::ustring &value) |
| Writes the specified string value to the text stream.
|
|
void | write (const xtd::ustring &value) override |
| Writes the specified string value to the text stream.
|
|
void | write (double value) |
| Writes the specified double value to the text stream.
|
|
void | write (float value) |
| Writes the specified float value to the text stream.
|
|
void | write (int16_t value) |
| Writes the specified int16_t value to the text stream.
|
|
void | write (int32_t value) |
| Writes the specified int32_t value to the text stream.
|
|
void | write (int64_t value) |
| Writes the specified int64_t value to the text stream.
|
|
void | write (int8_t value) |
| Writes the specified int8_t value to the text stream.
|
|
void | write (uint16_t value) |
| Writes the specified uint16_t value to the text stream.
|
|
void | write (uint32_t value) |
| Writes the specified uint32_t value to the text stream.
|
|
void | write (uint64_t value) |
| Writes the specified uint64_t value to the text stream.
|
|
void | write (uint8_t value) |
| Writes the specified uint8_t value to the text stream.
|
|
template<typename value_t > |
void | write (value_t value) |
| Writes the specified value_t value to the text stream.
|
|
virtual void | close () |
| Closes the xtd::io::text_reader and releases any system resources associated with the text_reader.
|
|
virtual void | flush () |
| Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
|
|
const xtd::ustring & | new_line () const noexcept |
| Gets the line terminator string used by the current text_writer.
|
|
void | new_line (const xtd::ustring &new_line) noexcept |
| Sets the line terminator string used by the current text_writer.
|
|
void | write (bool value) |
| Writes the specified bool value to the text stream.
|
|
template<typename ... args_t> |
void | write (const xtd::ustring &fmt, args_t &&... args) noexcept |
| Writes the specified arguments with specified format to the text stream.
|
|
virtual void | write (const xtd::ustring &value) |
| Writes the specified string value to the text stream.
|
|
void | write (double value) |
| Writes the specified double value to the text stream.
|
|
void | write (float value) |
| Writes the specified float value to the text stream.
|
|
void | write (int16_t value) |
| Writes the specified int16_t value to the text stream.
|
|
void | write (int32_t value) |
| Writes the specified int32_t value to the text stream.
|
|
void | write (int64_t value) |
| Writes the specified int64_t value to the text stream.
|
|
void | write (int8_t value) |
| Writes the specified int8_t value to the text stream.
|
|
void | write (uint16_t value) |
| Writes the specified uint16_t value to the text stream.
|
|
void | write (uint32_t value) |
| Writes the specified uint32_t value to the text stream.
|
|
void | write (uint64_t value) |
| Writes the specified uint64_t value to the text stream.
|
|
void | write (uint8_t value) |
| Writes the specified uint8_t value to the text stream.
|
|
template<typename value_t > |
void | write (value_t value) |
| Writes the specified value_t value to the text stream.
|
|
void | write_line () |
| Writes new line to the text stream.
|
|
void | write_line (bool value) |
| Writes the specified bool value and new line to the text stream.
|
|
template<typename ... args_t> |
void | write_line (const xtd::ustring &fmt, args_t &&... args) noexcept |
| Writes the specified arguments with specified format to the text stream.
|
|
void | write_line (const xtd::ustring &value) |
| Writes the specified string value and new line to the text stream.
|
|
void | write_line (double value) |
| Writes the specified double value and new line to the text stream.
|
|
void | write_line (float value) |
| Writes the specified float value and new line to the text stream.
|
|
void | write_line (int16_t value) |
| Writes the specified int16_t value and new line to the text stream.
|
|
void | write_line (int32_t value) |
| Writes the specified int32_t value and new line to the text stream.
|
|
void | write_line (int64_t value) |
| Writes the specified int64_t value and new line to the text stream.
|
|
void | write_line (int8_t value) |
| Writes the specified int8_t value and new line to the text stream.
|
|
void | write_line (uint16_t value) |
| Writes the specified uint16_t value and new line to the text stream.
|
|
void | write_line (uint32_t value) |
| Writes the specified uint32_t value and new line to the text stream.
|
|
void | write_line (uint64_t value) |
| Writes the specified uint64_t value and new line to the text stream.
|
|
void | write_line (uint8_t value) |
| Writes the specified uint8_t value and new line to the text stream.
|
|
template<typename value_t > |
void | write_line (value_t value) |
| Writes the specified value_t value and new line to the text stream.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance.
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a std::string that represents the current object.
|
|