KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Properties | List of all members
KSP.IO.TextReader Class Reference

Identical to System.IO.TextReader, but with added IDisposable methods (for use in using() statements), and a factory method instead of constructors. More...

Inheritance diagram for KSP.IO.TextReader:

Public Member Functions

void Close ()
 
void DiscardBufferedData ()
 
void Dispose ()
 
int Peek ()
 
int Read ()
 
int Read (char[] buffer, int index, int count)
 
string ReadLine ()
 
string ReadToEnd ()
 

Static Public Member Functions

static TextReader CreateForType< T > (string filename, Vessel flight=null)
 Create a text reader stream. More...
 

Properties

Stream BaseStream [get]
 
Encoding CurrentEncoding [get]
 
bool EndOfStream [get]
 

Detailed Description

Identical to System.IO.TextReader, but with added IDisposable methods (for use in using() statements), and a factory method instead of constructors.

Member Function Documentation

void KSP.IO.TextReader.Close ( )
static TextReader KSP.IO.TextReader.CreateForType< T > ( string  filename,
Vessel  flight = null 
)
static

Create a text reader stream.

Template Parameters
T
Parameters
filename
flight
Returns
void KSP.IO.TextReader.DiscardBufferedData ( )
void KSP.IO.TextReader.Dispose ( )
int KSP.IO.TextReader.Peek ( )
int KSP.IO.TextReader.Read ( )
int KSP.IO.TextReader.Read ( char[]  buffer,
int  index,
int  count 
)
string KSP.IO.TextReader.ReadLine ( )
string KSP.IO.TextReader.ReadToEnd ( )

Property Documentation

Stream KSP.IO.TextReader.BaseStream
get
Encoding KSP.IO.TextReader.CurrentEncoding
get
bool KSP.IO.TextReader.EndOfStream
get

The documentation for this class was generated from the following file: