AbstractProtectedconstructorOptionalisInternalConstructor: booleanGets the access mode of the stream.
Checks whether the stream reads/writes from a file system.
Checks whether the stream reads/writes from memory.
Determines if the stream is readable.
Checks whether the stream is valid.
Determines if the stream is writable.
Gets the name of the stream.
Returns the total size of the data to be read from the stream, or 0 if this is indeterminate for this stream.
Aligns the read/write cursor to a byte boundary. count determines the alignment in bytes. Note the requested alignment might
not be achieved if count > 1 and it would move the cursor past the capacity of the buffer, as the cursor will be clamped to
buffer end regardless of alignment.
Optionalcount: numberCreates a copy of this stream.
OptionalcopyData: booleanIf true the internal stream data will be copied as well, otherwise it will just reference the data from the original stream (in which case the caller must ensure the original stream outlives the clone). This is not relevant for file streams.
Read count bytes from both streams and determines if both streams are byte-wise identical.
The stream positions for both streams will be offset by count and must be manually reset.
Number of bytes to compare.
True if identical.
Read count bytes from the stream and writes and advance both the readStream and this stream's cursor.
Number of bytes to write.
Number of bytes actually written.
Writes the provided narrow string to the steam. String is convered to the required encoding before being written.
String containing narrow characters to write, encoded as UTF8.
Optionalencoding: EnumValue<StringEncoding, number>Encoding to convert the string to before writing.
OptionalisWritingBOM: boolean
General purpose class used for encapsulating the reading and writing of data from and to various sources using a common interface.