|  |  |  |  | 
        
          | 
                
                  |  | class FileReaderWriterImpl |  |   |  
        
          | Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages 
 acdk::io::FileReaderWriterImpl Class Reference#include <FileReaderWriterImpl.h>
List of all members. 
 Detailed DescriptionInternal Implementation base of FileReader and FileWriter.
API: Java
 Author:Roger Rene Kommer (mailto:kommer@artefaktur.com) 
 Version:Revision1.17 
 Date:Date2005/04/09 19:26:45 
 
 
|  |  | 
 Public Member Functions |  |  | FileReaderWriterImpl (IN(RFile) file, int omode, int pmode=S_IREAD|S_IWRITE) |  |  | omode and pmode see system call open(const char *filename, int oflag, int pmode) 
 
 |  |  | FileReaderWriterImpl (IN(RString) fileName, int omode, int pmode=S_IREAD|S_IWRITE) |  |  | omode and pmode see system call open(const char *filename, int oflag, int pmode) 
 
 |  |  | FileReaderWriterImpl (IN(RFile) file, IN(RString) mode) |  |  | same as above, but with r, rw-syntax 
 
 |  |  | FileReaderWriterImpl (IN(RFileDescriptor) fd, bool dupl=false) |  | virtual | ~FileReaderWriterImpl () |  | int | available () |  | void | close () |  | jlong | seek (SeekPos seekrel, jlong seekpos) |  | jlong | skip (jlong n) |  | int | read () |  | int | read (IN(RbyteArray) buffer, int offset=0, int len=-1) |  | int | read (byte *buffer, int offset, int len) |  | RString | readLine () |  | void | write (byte c) |  | void | write (const byte *cstr, int offset, int len) |  | void | write (IN(RbyteArray) buffer, int offset=0, int len=-1) |  | void | flush () |  | void | open (IN(RFile) fname, int omode, int pmode=S_IREAD|S_IWRITE) |  |  | omode and pmode see system call open(const byte *filename, int oflag, int pmode) 
 
 |  | RFileDescriptor | getFD () |  | jlong | fileLength () |  | jlong | curSeekPos () |  | bool | isReadable () |  | bool | isWriteable () |  | void | setLength (jlong newLength) |  | bool | eof () |  | 
 Protected Attributes |  | RFileDescriptor | _fd |  | bool | _ownFileDescriptor |  | bool | _eof |  | bool | _eofReturned |  | 
 Private Member Functions |  | void | _setFD (int fd, int omode) |  | 
 Friends |  | class | FileDescriptor |  
 Constructor & Destructor Documentation
 
  
    | 
        
          | acdk::io::FileReaderWriterImpl::FileReaderWriterImpl | ( | IN(RFile) | file, |  
          |  |  | int | omode, |  
          |  |  | int | pmode = S_IREAD|S_IWRITE |  
          |  | ) |  |  |  
  
    |  | 
omode and pmode see system call open(const char *filename, int oflag, int pmode)
 
     |  
 
  
    | 
        
          | acdk::io::FileReaderWriterImpl::FileReaderWriterImpl | ( | IN(RString) | fileName, |  
          |  |  | int | omode, |  
          |  |  | int | pmode = S_IREAD|S_IWRITE |  
          |  | ) |  |  |  
  
    |  | 
omode and pmode see system call open(const char *filename, int oflag, int pmode)
 
     |  
 
  
    | 
        
          | acdk::io::FileReaderWriterImpl::FileReaderWriterImpl | ( | IN(RFile) | file, |  
          |  |  | IN(RString) | mode |  
          |  | ) |  |  |  
  
    |  | 
same as above, but with r, rw-syntax
 
 Parameters:
  
    | file | the file to open |  | mode | r or rw for read/write access | 
 |  
 
  
    | 
        
          | acdk::io::FileReaderWriterImpl::FileReaderWriterImpl | ( | IN(RFileDescriptor) | fd, |  
          |  |  | bool | dupl = false |  
          |  | ) |  |  |  
  
    |  | 
 Parameters:
  
    | fd | the native file descriptor | 
 |  
 
 Member Function Documentation
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::_setFD | ( | int | fd, |  
          |  |  | int | omode |  
          |  | ) |  [private] |  |  
 
  
    | 
        
          | int acdk::io::FileReaderWriterImpl::available | ( |  | ) |  |  |  
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::close | ( |  | ) |  |  |  
 
  
    | 
        
          | jlong acdk::io::FileReaderWriterImpl::curSeekPos | ( |  | ) |  |  |  
 
  
    | 
        
          | bool acdk::io::FileReaderWriterImpl::eof | ( |  | ) |  [inline] |  |  
 
  
    | 
        
          | jlong acdk::io::FileReaderWriterImpl::fileLength | ( |  | ) |  |  |  
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::flush | ( |  | ) |  |  |  
 
 
  
    | 
        
          | bool acdk::io::FileReaderWriterImpl::isReadable | ( |  | ) |  |  |  
 
  
    | 
        
          | bool acdk::io::FileReaderWriterImpl::isWriteable | ( |  | ) |  |  |  
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::open | ( | IN(RFile) | fname, |  
          |  |  | int | omode, |  
          |  |  | int | pmode = S_IREAD|S_IWRITE |  
          |  | ) |  |  |  
  
    |  | 
omode and pmode see system call open(const byte *filename, int oflag, int pmode)
 
     |  
 
  
    | 
        
          | int acdk::io::FileReaderWriterImpl::read | ( | byte * | buffer, |  
          |  |  | int | offset, |  
          |  |  | int | len |  
          |  | ) |  |  |  
 
  
    | 
        
          | int acdk::io::FileReaderWriterImpl::read | ( | IN(RbyteArray) | buffer, |  
          |  |  | int | offset = 0, |  
          |  |  | int | len = -1 |  
          |  | ) |  |  |  
 
  
    | 
        
          | int acdk::io::FileReaderWriterImpl::read | ( |  | ) |  |  |  
 
  
    | 
        
          | RString acdk::io::FileReaderWriterImpl::readLine | ( |  | ) |  |  |  
 
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::setLength | ( | jlong | newLength | ) |  |  |  
 
  
    | 
        
          | jlong acdk::io::FileReaderWriterImpl::skip | ( | jlong | n | ) |  [inline] |  |  
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::write | ( | IN(RbyteArray) | buffer, |  
          |  |  | int | offset = 0, |  
          |  |  | int | len = -1 |  
          |  | ) |  |  |  
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::write | ( | const byte * | cstr, |  
          |  |  | int | offset, |  
          |  |  | int | len |  
          |  | ) |  |  |  
 
  
    | 
        
          | void acdk::io::FileReaderWriterImpl::write | ( | byte | c | ) |  |  |  
 Friends And Related Function Documentation
 
 Member Data Documentation
 
 
 
 |  |