|  |  |  |  | 
        
          |  |   |  
        
          | Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages 
 acdk::io::SubReader Class Reference#include <SubReader.h>
 Inheritance diagram for acdk::io::SubReader:
  List of all members. 
 Detailed DescriptionA SubReader is a filter, which reads a segement from another readerAPI: ACDK.
 
 Author:Roger Rene Kommer (mailto:kommer@artefaktur.com) 
 Version:Revision1.9 
 Date:Date2005/02/05 10:44:54 
 
 
 Constructor & Destructor Documentation
 
  
    | 
        
          | acdk::io::SubReader::SubReader | ( | IN(RReader) | in, |  
          |  |  | int | startoffset, |  
          |  |  | int | len |  
          |  | ) |  |  |  
 Member Function Documentation
 
  
    | 
        
          | int acdk::io::SubReader::available | ( |  | ) |  [virtual] |  |  
 
  
    | 
        
          | int acdk::io::SubReader::read | ( | IN(RbyteArray) | buffer, |  
          |  |  | int | offset, |  
          |  |  | int | len |  
          |  | ) |  [inline, virtual] |  |  
  
    |  | 
read the len bytes into buffer at offset of the buffer
 
 Parameters:
  
    | buffer | where to write the bytes |  | offset | offset to write into buffer |  | len | how many bytes to read. if == -1 read into many bytes, that fits into buffer (buffer->length() - offset) `` | 
 Returns:number of bytes readed. may less than input if EOS is reached 
 Exceptions:
  
    | EOF | exception, if trying to read behind EOS | 
 
Reimplemented from acdk::io::AbstractFilterReader.     |  
 
  
    | 
        
          | int acdk::io::SubReader::read | ( |  | ) |  [inline, virtual] |  |  
  
    |  | 
read a single byte from stream
 
 Returns:the byte readed or -1 if EOS. 
 Exceptions:
  
    | EOF | exception, if trying to read behind EOS | 
 
Reimplemented from acdk::io::AbstractFilterReader.     |  
 
  
    | 
        
          | int acdk::io::SubReader::read | ( | byte * | buffer, |  
          |  |  | int | offset, |  
          |  |  | int | len |  
          |  | ) |  [virtual] |  |  
 
 
  
    | 
        
          | jlong acdk::io::SubReader::skip | ( | jlong | n | ) |  [virtual] |  |  
  
    |  | 
Move forwart into the stream.
 
 Returns:how many bytes skipped. May less then input, in case EOS is reached 
 
Reimplemented from acdk::io::AbstractFilterReader.     |  
 Member Data Documentation
 
 
 |  |