Represents a null text reader.
- Inheritance
- xtd::io::text_reader → xtd::io::null_text_reader
- Namespace
- xtd::io
- Library
- xtd.core
|
virtual void | close () |
| Closes the xtd::io::text_reader and releases any system resources associated with the text_reader. More...
|
|
virtual int32 | peek () const |
| Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream. More...
|
|
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. More...
|
|
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. More...
|
|
virtual xtd::ustring | read_line () |
| Reads a line of characters from the current stream and returns the data as a string. More...
|
|
virtual xtd::ustring | read_to_end () |
| Reads all characters from the current position to the end of the text_reader and returns them as one string. More...
|
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More...
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More...
|
|
static null_text_reader & | null () noexcept |
| Provides a text_reader with no data to read from. More...
|
|
static synchronized_text_reader | synchronised (text_reader &reader) noexcept |
| Creates a thread-safe (synchronized) wrapper around the specified text_reader object. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
| text_reader ()=default |
| Initializes a new instance of the xtd::io::text_reader class. More...
|
|