CLucene - a full-featured, c++ search engine
API Documentation
00001 00016 #ifndef FILEINPUTSTREAM_H 00017 #define FILEINPUTSTREAM_H 00018 00019 #include <stdio.h> 00020 #include "bufferedstream.h" 00021 00022 namespace jstreams { 00023 00024 class FileInputStream : public BufferedInputStream<char> { 00025 private: 00026 FILE *file; 00027 std::string filepath; 00028 00029 public: 00030 static const int32_t defaultBufferSize; 00031 FileInputStream(const char *filepath, int32_t buffersize=defaultBufferSize); 00032 ~FileInputStream(); 00033 int32_t fillBuffer(char* start, int32_t space); 00034 }; 00035 00036 } // end namespace jstreams 00037 00038 #endif 00039