2 * © 2008 by David Roden <droden@gmail.com>
8 #include "ReaderInput.h"
10 #include "GrowingBuffer.h"
11 #include "StringTag.h"
15 class CollectionReader {
18 CollectionReader(ReaderInput* readerInput);
21 ED2KLink* getNextLink();
24 void identifyCollectionType();
25 bool isLineBreakPresent();
26 bool ensureBufferCapacity(size_t byteCount);
29 BlobTag* readBlobTag(bool header = false);
30 StringTag* readStringTag(bool header = false);
31 HashTag* readHashTag();
34 ReaderInput* readerInput;
35 GrowingBuffer growingBuffer;
38 bool isTextCollection;
39 uint32_t fileCollectionCount;
40 uint32_t collectionFileIndex;