Torque2D Reference
Public Types | Public Member Functions | List of all members
AutoUTFInputStream< CharType, InputByteStream > Class Template Reference

Input stream wrapper with dynamically bound encoding and automatic encoding detection. More...

#include <encodedstream.h>

Public Types

typedef CharType Ch
 

Public Member Functions

 AutoUTFInputStream (InputByteStream &is, UTFType type=kUTF8)
 Constructor. More...
 
UTFType GetType () const
 
bool HasBOM () const
 
Ch Peek () const
 
Ch Take ()
 
size_t Tell () const
 
void Put (Ch)
 
void Flush ()
 
ChPutBegin ()
 
size_t PutEnd (Ch *)
 

Detailed Description

template<typename CharType, typename InputByteStream>
class rapidjson::AutoUTFInputStream< CharType, InputByteStream >

Input stream wrapper with dynamically bound encoding and automatic encoding detection.

Template Parameters
CharTypeType of character for reading.
InputByteStreamtype of input byte stream to be wrapped.

Member Typedef Documentation

typedef CharType Ch

Constructor & Destructor Documentation

AutoUTFInputStream ( InputByteStream &  is,
UTFType  type = kUTF8 
)
inline

Constructor.

Parameters
isinput stream to be wrapped.
typeUTF encoding type if it is not detected from the stream.

Member Function Documentation

void Flush ( )
inline
UTFType GetType ( ) const
inline
bool HasBOM ( ) const
inline
Ch Peek ( ) const
inline
void Put ( Ch  )
inline
Ch* PutBegin ( )
inline
size_t PutEnd ( Ch )
inline
Ch Take ( )
inline
size_t Tell ( ) const
inline

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