Logo Search packages:      
Sourcecode: jikes version File versions  Download package

JikesAPI::FileReader * JikesAPI::read ( const char *  fileName  )  [virtual]

By default return an object that reads from the file system.

Definition at line 255 of file jikesapi.cpp.

References JikesAPI::FileReader::getBuffer().

    FileReader  *result  =  new DefaultFileReader(fileName);

    // NB even if a file is empty (0 bytes)
    // This will return a pointer to 0 length array
    // and should not be NULL.
    if (result && (result->getBuffer() == NULL))
        delete result;
        result  = NULL;
    return result;

Generated by  Doxygen 1.6.0   Back to index