#ifndef __LUCENE_STORE_INDEX_OUTPUT__ #define __LUCENE_STORE_INDEX_OUTPUT__ #include /** Write to a file */ @interface LCIndexOutput: NSObject /** Write a four-byte Int */ - (void) writeInt: (long) i; /** Write a four-byte VInt */ - (void) writeVInt: (long) i; /** Write a eight-byte Long */ - (void) writeLong: (long long) i; /** Write a eight-byte VLong */ - (void) writeVLong: (long long) i; /** Write a string */ - (void) writeString: (NSString *) s; /** Write a string */ - (void) writeChars: (NSString *) s start: (int) start length: (int) length; /** Write a byte */ - (void) writeByte: (char) b; /** Write bytes with len */ - (void) writeBytes: (NSData *)b length: (int) len; /** flush data in memory */ - (void) flush; /** Close file */ - (void) close; /** Offset in file */ - (unsigned long long) offsetInFile; /** Seek to offset in file */ - (void) seekToFileOffset: (unsigned long long) pos; /** File length */ - (unsigned long long) length; @end #endif /* __LUCENE_STORE_INDEX_OUTPUT__ */