Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Reader Class Reference

Class created to read data from stream speficied by uri. More...

Inheritance diagram for Reader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

Public Attributes


Detailed Description

Class created to read data from stream speficied by uri.


Constructor & Destructor Documentation

void Reader String  uriString  ) 
 

Creates new Reader object.

Parameters:
uriString String with uri which specifies input streams.
Exceptions:
IOError Throws when uriString don't containt valid data.


Member Function Documentation

void open String  charset  ) 
 

Open streams.

Parameters:
charset String with charset id of data in stream. If specified, all readed data will be converted from format described by this parameter, to internal unicode format.
Exceptions:
IOError Thrown when any IO error occurs.

String read int  length  ) 
 

Reads data from stream.

Parameters:
length Size of data to read. This value will be trimed to length of current available data segment. Default value for this parameter is value of available property. (optional)
Returns:
Data readed from stream.
Exceptions:
IOError Thrown when any IO error occurs.
CharsetConvertError Thrown when charset conversion fails.

void setCharset String  charset  ) 
 

Set charset used to convert data from stream.

Parameters:
charset Name of charset used by converter.


Member Data Documentation

int available
 

Length of maximal available data segment.

For file streams this property contains length of file. (read-only)


The documentation for this class was generated from the following file:
Generated on Tue Jan 4 01:03:51 2005 for JabberZilla by  doxygen 1.4.0