ITextStream
Description
- Derived from
-
IStream
IDisposableGeneric<ITextStream>
ITransferable<ITextStream>
ICharacterEscape - Extended by
-
TextStreamBase abstract
A IDataStream object provides access to a file in the filesystem in a stream oriented (i.e. sequential) manner.
The interface provides methods for manipulating the file cursor of the underlying file in the filesystem and methods for reading and writing of single bytes values and blocks of bytes.
Additional methods provide support for reading and writing of multibyte values, byte endianness and a file cursor stack for simplified navigation in data streams that support seeking.
Public / Methods
Read
Reads a number of characters from the stream.
The number of characters that are read from the stream may be less than the given count, for any reason.
- IOException
-
If an I/O error has occurred.
ReadToEnd
Reads all remaining characters from this stream and disposes this stream afterwards.
- IOException
-
If an I/O error has occurred.
Write
4 overloads
Writes a number of characters to the stream.
- IOException
-
If an I/O error has occurred.
Writes a number of characters to the stream.
- IOException
-
If an I/O error has occurred.
Writes a number of characters to the stream.
- IOException
-
If an I/O error has occurred.
Writes a number of characters to the stream.
- IOException
-
If an I/O error has occurred.
Extensions
DecodeBase85
Decodes binary data using a base-85 encoding after reading it from this text stream.
This is the mapping between base-85 digits and printable 7-bit ASCII characters:
!#$%()*+,-.0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[^_abcdefghijklmnopqrstuvwxyz{|}~ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ 0 10 20 30 40 50 60 70 80 85
The following printable ASCII characters are not used by the encoding, which allows encoded string to be used safely in various contexts (e.g. string literals, XML text, XML attributes, XML CDATA sections):
"&'/<>\]`
EncodeBase85
Encodes binary data using a base-85 encoding before writing it to this text stream.
This is the mapping between base-85 digits and printable 7-bit ASCII characters:
!#$%()*+,-.0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[^_abcdefghijklmnopqrstuvwxyz{|}~ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ 0 10 20 30 40 50 60 70 80 85
The following printable ASCII characters are not used by the encoding, which allows encoded string to be used safely in various contexts (e.g. string literals, XML text, XML attributes, XML CDATA sections):
"&'/<>\]`
ReadEof
Reads a number of characters from the stream.
The number of characters that are read from the stream will be less than the given count only if the end of the stream has been reached.
- IOException
-
If an I/O error has occurred.