Streaming of input.  
 More...
#include <JFileStream.hh>
Streaming of input. 
Definition at line 24 of file JFileStream.hh.
 
◆ int_type
◆ JFileInputStream()
  
  
      
        
          | JLANG::JFileInputStream::JFileInputStream  | 
          ( | 
          const JAbstractFile &  | 
          file,  | 
         
        
           | 
           | 
          const std::size_t  | 
          size = 65536  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | file | file  | 
    | size | size of internal buffer  | 
  
   
Definition at line 35 of file JFileStream.hh.
 
 
◆ underflow()
  
  
      
        
          | virtual int_type JLANG::JFileInputStreamBuffer::underflow  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineoverridevirtualinherited   | 
  
 
Check underflow. 
This method reads as many bytes as possible.
- Returns
 - first character if OK; else EOF 
 
Definition at line 60 of file JFileStreamBuffer.hh.
   62       if (gptr() >= egptr()) {
 
   64         char* __begin = this->
data();
 
   66         if (eback() == __begin) { 
 
   75         const size_t len = 
in.
read(__begin, this->size() - (__begin - this->
data()));
 
   78           setg(this->
data(), __begin, __begin + len);
 
   80           return traits_type::eof();
 
virtual int read(char *buffer, const int length)
Read data from file.
 
 
 
 
◆ in_avail()
Check availability of input. 
This method returns true if at least one byte can be read without blocking.
- Parameters
 - 
  
  
 
- Returns
 - true if ready to read; else false 
 
Definition at line 94 of file JFileStreamBuffer.hh.
Auxiliary class for method select.
 
bool in_avail(JTimeval timeout=JTimeval::min())
Check availability of input.
 
 
 
 
◆ in
  
  
      
        
          | JFile JLANG::JFileInputStreamBuffer::in | 
         
       
   | 
  
protectedinherited   | 
  
 
 
◆ memory
  
  
      
        
          | std::size_t JLANG::JFileInputStreamBuffer::memory | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this class was generated from the following file: