| 
      
      | 
      | 
      | 
      | 
    
     
      
        
          | 
            
              
             | 
          
  		        
	         | 
         
       
      
        
          
      
    
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages   
 acdk::io::BytePtrReader Class Reference#include <BytePtrReader.h>
 Inheritance diagram for acdk::io::BytePtrReader:
  
List of all members.
 Detailed Description
internal reader class.
ptr must be owned by other class 
 
 
 Constructor & Destructor Documentation
 
  
    
      
        
          |  acdk::io::BytePtrReader::BytePtrReader  | 
          (  | 
          const byte *  | 
           begin,  | 
         
        
           | 
           | 
          int  | 
           len | 
         
        
           | 
          )  | 
           [inline] | 
         
       
     | 
   
 
 
  
    
      
        
          |  acdk::io::BytePtrReader::BytePtrReader  | 
          (  | 
          const byte *  | 
           begin,  | 
         
        
           | 
           | 
          const byte *  | 
           end | 
         
        
           | 
          )  | 
           [inline] | 
         
       
     | 
   
 
 Member Function Documentation
 
  
    
      
        
          |  virtual int acdk::io::BytePtrReader::available  | 
          (  | 
                     | 
           )  | 
           [inline, virtual] | 
         
       
     | 
   
 
  
    | 
       
     | 
    
 
returns the number of bytes available in this stream before blocking Some Reader always return 0
 
 
Reimplemented from acdk::io::Reader.      | 
   
 
 
  
    
      
        
          |  void acdk::io::BytePtrReader::close  | 
          (  | 
                     | 
           )  | 
           [inline, virtual] | 
         
       
     | 
   
 
  
    | 
       
     | 
    
 
closes this Reader.
 
Note: Some Reader must be closed explicitaly Note: Reader implementation must be avare from closing a reader more than one 
 
Reimplemented from acdk::io::Reader.      | 
   
 
 
  
    
      
        
          |  virtual void acdk::io::BytePtrReader::mark  | 
          (  | 
          int  | 
           readAheadLimit           | 
           )  | 
           [inline, virtual] | 
         
       
     | 
   
 
 
  
    
      
        
          |  virtual bool acdk::io::BytePtrReader::markSupported  | 
          (  | 
                     | 
           )  | 
           [inline, virtual] | 
         
       
     | 
   
 
 
  
    
      
        
          |  virtual int acdk::io::BytePtrReader::read  | 
          (  | 
          byte *  | 
           buffer,  | 
         
        
           | 
           | 
          int  | 
           offset,  | 
         
        
           | 
           | 
          int  | 
           len | 
         
        
           | 
          )  | 
           [virtual] | 
         
       
     | 
   
 
 
  
    
      
        
          |  virtual int acdk::io::BytePtrReader::read  | 
          (  | 
          IN(RbyteArray)  | 
           buffer,  | 
         
        
           | 
           | 
          int  | 
           offset = 0,  | 
         
        
           | 
           | 
          int  | 
           len = -1 | 
         
        
           | 
          )  | 
           [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::AbstractReader.      | 
   
 
 
  
    
      
        
          |  int acdk::io::BytePtrReader::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::AbstractReader.      | 
   
 
 
  
    
      
        
          |  virtual void acdk::io::BytePtrReader::reset  | 
          (  | 
                     | 
           )  | 
           [inline, virtual] | 
         
       
     | 
   
 
 
  
    
      
        
          |  virtual jlong acdk::io::BytePtrReader::seek  | 
          (  | 
          SeekPos  | 
           seekrel,  | 
         
        
           | 
           | 
          jlong  | 
           seekpos | 
         
        
           | 
          )  | 
           [virtual] | 
         
       
     | 
   
 
 
  
    
      
        
          |  virtual jlong acdk::io::BytePtrReader::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::AbstractReader.      | 
   
 
 Member Data Documentation
 
 
 
 
  
           | 
         
       
      |