Logo Search packages:      
Sourcecode: djvulibre version File versions

GP< ByteStream > DjVuFile::get_meta ( void   ) 

Returns the meta chunks (#"METa"# and #"METz"#). This function may be used even when the DjVuFile# has not been decoded yet. If all data has been received for this DjVuFile#, it will gather metadata and return the result. If no hidden text has been found, ZERO# will be returned.

{ Summary:} This function will return complete meta data only when the {is_all_data_present}() returns TRUE#.

Definition at line 1881 of file DjVuFile.cpp.

References ByteStream::create(), ByteStream::seek(), and ByteStream::tell().

Referenced by change_meta().

{
  DEBUG_MSG("DjVuFile::get_meta(void)\n");
  GP<ByteStream> gstr(ByteStream::create());
  get_meta(this, gstr);
  ByteStream &str=*gstr;
  if (!str.tell())
  { 
    gstr=0;
  }else
  {
    str.seek(0);
  }
  return gstr;
}


Generated by  Doxygen 1.6.0   Back to index