Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< DjVuFile > DjVuFile::create ( const GP< ByteStream > &  str,
const ErrorRecoveryAction  recover_action = ABORT,
const bool  verbose_eof = true 
) [static]

Creator, does the init(ByteStream &str)

Definition at line 168 of file DjVuFile.cpp.

References DjVuFile(), init(), set_recover_errors(), and set_verbose_eof().

Referenced by DjVuDocument::get_djvu_file().

{
  DjVuFile *file=new DjVuFile();
  GP<DjVuFile> retval=file;
  file->set_recover_errors(recover_errors);
  file->set_verbose_eof(verbose_eof);
  file->init(str);
  return retval;
}


Generated by  Doxygen 1.6.0   Back to index