Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

void DjVmDoc::read ( ByteStream str  ) 

Reading routines Reads contents of a {bundled} multipage DjVu document from the stream.

Definition at line 473 of file DjVmDoc.cpp.

References DataPool::create(), and ByteStream::read().

Referenced by read().

{
   DEBUG_MSG("DjVmDoc::read(): reading the BUNDLED doc contents from the stream\n");
   DEBUG_MAKE_INDENT(3);

   GP<DataPool> pool=DataPool::create();
   char buffer[1024];
   int length;
   while((length=str_in.read(buffer, 1024)))
      pool->add_data(buffer, length);
   pool->set_eof();

   read(pool);
}


Generated by  Doxygen 1.6.0   Back to index