Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Streams.NewlineNormalizerStream16bit

Summary

Provides functionality to replace the three different newlines (\r, \n, and \r\n) while reading from a stream containing textual data, without caring about the text encoding, as long as it is an encoding in which the newline characters are made of 16-bit characters (e.g. UTF-16).

Constructors

NewlineNormalizerStream16bit(Stream underlyingStream, byte[] newline = null, bool bigEndian = false)
Constructs a NewlineNormalizerStream16bit.

Instance methods

void
  • Overrides: Stream.Close()
Closes the underlying stream.
void
  • Overrides: Stream.Flush()
Does nothing.
int
Read(byte[] buffer, int offset, int count)
  • Overrides: Stream.Read(byte[], int, int)
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
long
Seek(long offset, SeekOrigin origin)
  • Overrides: Stream.Seek(long, SeekOrigin)
Throws a NotSupportedException.
void
SetLength(long value)
  • Overrides: Stream.SetLength(long)
void
Write(byte[] buffer, int offset, int count)
  • Overrides: Stream.Write(byte[], int, int)
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Instance properties

bool
  • Overrides: Stream.CanRead
Returns true.
bool
  • Overrides: Stream.CanSeek
Returns false.
bool
  • Overrides: Stream.CanWrite
Returns true.
long
  • Overrides: Stream.Length
Throws a NotSupportedException.
long
  • Overrides: Stream.Position