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