JGR MSTS Editors and Tools
BufferedInMemoryTextReader Class
NamespacesJgr.IOBufferedInMemoryTextReader

[This is preliminary documentation and is subject to change.]

A TextReader which buffers all the data in memory (as a String).
Declaration Syntax
C#Visual BasicVisual C++
public class BufferedInMemoryTextReader : TextReader
Public Class BufferedInMemoryTextReader _
	Inherits TextReader
public ref class BufferedInMemoryTextReader : public TextReader
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
BufferedInMemoryTextReader(TextReader)
__identity()()()() (Inherited from MarshalByRefObject.)
__RaceSetServerIdentity(ServerIdentity) (Inherited from MarshalByRefObject.)
__ResetServerIdentity()()()() (Inherited from MarshalByRefObject.)
CanCastToXmlType(String, String) (Inherited from MarshalByRefObject.)
ChunkSize
Close()()()() (Inherited from TextReader.)
CreateObjRef(Type) (Inherited from MarshalByRefObject.)
Dispose()()()() (Inherited from TextReader.)
Dispose(Boolean) (Inherited from TextReader.)
Equals(Object) (Inherited from Object.)
FieldGetter(String, String, Object%) (Inherited from Object.)
FieldSetter(String, String, Object) (Inherited from Object.)
Finalize()()()() (Inherited from Object.)
GetComIUnknown(Boolean) (Inherited from MarshalByRefObject.)
GetFieldInfo(String, String) (Inherited from Object.)
GetHashCode()()()() (Inherited from Object.)
GetLifetimeService()()()() (Inherited from MarshalByRefObject.)
GetType()()()() (Inherited from Object.)
Identity()()()() (Inherited from MarshalByRefObject.)
Incomming
InitializeLifetimeService()()()() (Inherited from MarshalByRefObject.)
InvokeMember(String, BindingFlags, Binder, array<Object>[]()[][], array<ParameterModifier>[]()[][], CultureInfo, array<String>[]()[][]) (Inherited from MarshalByRefObject.)
IsInstanceOfType(Type) (Inherited from MarshalByRefObject.)
Length
MemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
MemberwiseClone()()()() (Inherited from Object.)
Memory
MemoryPosition
Peek()()()() (Overrides TextReader.Peek()()()().)
Position
Read()()()() (Overrides TextReader.Read()()()().)
Read(array<Char>[]()[][], Int32, Int32) (Overrides TextReader.Read(array<Char>[]()[][], Int32, Int32).)
ReadBlock(array<Char>[]()[][], Int32, Int32) (Overrides TextReader.ReadBlock(array<Char>[]()[][], Int32, Int32).)
ReadChunk(Int32)
ReadLine()()()() (Overrides TextReader.ReadLine()()()().)
ReadToEnd()()()() (Overrides TextReader.ReadToEnd()()()().)
ToString()()()() (Inherited from Object.)
Remarks

This class should behave in all ways like a normal TextReader, but with speed improvements in cases where the same data is read multiple times (e.g. calling Peek()()()() a lot without advancing the stream).

An additional advantage is that reads to the underlying reader are done in large chunks (currently 1K), which can improve read speed for file accesses.

Inheritance Hierarchy
Object
MarshalByRefObject
 TextReader
  BufferedInMemoryTextReader

Assembly: JGR.IO (Module: JGR.IO) Version: 0.5.4008.31681