2005/5/9

     
 

class PushbackReader

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::PushbackReader Class Reference

#include <PushbackReader.h>

Inheritance diagram for acdk::io::PushbackReader:

acdk::io::AbstractFilterReader acdk::io::AbstractReader acdk::io::FilterReader acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

CharReader where bytes can be pushed back into the stream.

API: ACDK<br/>

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.13
Date:
Date
2005/04/09 19:26:45


Public Member Functions

 PushbackReader (IN(RReader) in, int buffsize=1)
virtual bool markSupported ()
 implement from FilterReader

virtual bool ready ()
 implement from Reader

virtual jlong skip (jlong num_bytes)
 implement from Reader

virtual int read ()
 implement from Reader

virtual int read (IN(RbyteArray) buf, int offset=0, int len=-1)
 implement from Reader

virtual int read (byte *buffer, int offset, int len)
 implement from Reader

virtual void unread (int b)
 Pushback 1 byte into the stream.

virtual void unread (IN(RbyteArray) ch)
 API: Extended.


Protected Attributes

RbyteArray _buffer
int _pos


Constructor & Destructor Documentation

acdk::io::PushbackReader::PushbackReader IN(RReader in,
int  buffsize = 1
 


Member Function Documentation

virtual bool acdk::io::PushbackReader::markSupported  )  [inline, virtual]
 

implement from FilterReader

Reimplemented from acdk::io::AbstractFilterReader.

virtual int acdk::io::PushbackReader::read byte buffer,
int  offset,
int  len
[inline, virtual]
 

implement from Reader

Reimplemented from acdk::io::AbstractFilterReader.

virtual int acdk::io::PushbackReader::read IN(RbyteArray buf,
int  offset = 0,
int  len = -1
[virtual]
 

implement from Reader

Reimplemented from acdk::io::AbstractFilterReader.

virtual int acdk::io::PushbackReader::read  )  [virtual]
 

implement from Reader

Reimplemented from acdk::io::AbstractFilterReader.

virtual bool acdk::io::PushbackReader::ready  )  [virtual]
 

implement from Reader

Reimplemented from acdk::io::AbstractFilterReader.

virtual jlong acdk::io::PushbackReader::skip jlong  num_bytes  )  [virtual]
 

implement from Reader

Reimplemented from acdk::io::AbstractFilterReader.

virtual void acdk::io::PushbackReader::unread IN(RbyteArray ch  )  [virtual]
 

API: Extended.

Pushes the complete back into stream

virtual void acdk::io::PushbackReader::unread int  b  )  [virtual]
 

Pushback 1 byte into the stream.


Member Data Documentation

RbyteArray acdk::io::PushbackReader::_buffer [protected]
 

int acdk::io::PushbackReader::_pos [protected]