Implements a xtd::io::text_reader that reads characters from a byte stream.
Implements a xtd::io::text_reader that reads characters from a byte stream.
Definition stream_reader.h:28
Represents a reader that can read a sequential series of characters.
Definition text_reader.h:36
#define core_export_
Define shared library export.
Definition core_export.h:13
- Inheritance
- xtd::io::text_reader → xtd::io::stream_reader
- Header
#include <xtd/io/stream_reader>
- Namespace
- xtd::io
- Library
- xtd.core
- Examples
- file_info_move_to.cpp, file_info_open.cpp, file_info_open_read.cpp, file_info_open_write.cpp, generic_ienumerable.cpp, network_stream.cpp, process_with_standard_output_redirection.cpp, tcp_client_ip_v4.cpp, tcp_client_ip_v6.cpp, and test_forms.cpp.
|
virtual size_t | read (std::vector< char > &buffer, size_t index, size_t count) |
| Reads a specified maximum number of characters from the current text reader and writes the data to a buffer, beginning at the specified index.
|
|
virtual size_t | read_block (std::vector< char > &buffer, size_t index, size_t count) |
| Reads a specified maximum number of characters from the current text reader and writes the data to a buffer, beginning at the specified index.
|
|
virtual xtd::string | read_line () |
| Reads a line of characters from the current stream and returns the data as a string.
|
|
virtual xtd::string | read_to_end () |
| Reads all characters from the current position to the end of the text_reader and returns them as one string.
|
|
| 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.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<typename object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
static null_text_reader & | null () noexcept |
| Provides a text_reader with no data to read from.
|
|
static synchronized_text_reader | synchronised (text_reader &reader) noexcept |
| Creates a thread-safe (synchronized) wrapper around the specified text_reader object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
| text_reader ()=default |
| Initializes a new instance of the xtd::io::text_reader class.
|
|