#pragma interface
#endif
-#include <stdio.h>
#include "gtypes.h"
#include "Object.h"
-#include "BaseFile.h"
class Dict;
-class FileStream;
+class Stream;
//------------------------------------------------------------------------
// XRef
public:
// Constructor. Read xref table from stream.
- XRef(FileStream *str);
+ XRef(BaseStream *str);
// Destructor.
~XRef();
private:
- BaseFile file; // input file
+ BaseStream *str; // input stream
int start; // offset in file (to allow for garbage
// at beginning of file)
XRefEntry *entries; // xref entries
GBool ok; // true if xref table is valid
Object trailerDict; // trailer dictionary
- int readTrailer(FileStream *str);
- GBool readXRef(FileStream *str, int *pos);
- GBool constructXRef(FileStream *str);
+ int readTrailer();
+ GBool readXRef(int *pos);
+ GBool constructXRef();
GBool checkEncrypted();
};