Comitted tidied versions

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-08-07 11:34:59 +00:00
parent a21957cf61
commit d94f515c07
2 changed files with 34 additions and 5 deletions

View file

@ -43,7 +43,7 @@
<h3><a name ="cont-1">The classes</a></h3>
<ul>
<li ><a href ="GSMimeDocument.html">GSMimeDocument</a>
<li ><a href ="GSMimeParser.html">GSMimearser</a>
<li ><a href ="GSMimeParser.html">GSMimeParser</a>
</ul>
</body>

View file

@ -27,6 +27,21 @@
an associated document into which data is stored.
</p>
<p>
You supply the document to be parsed as one or more data
items passed to the <code>Parse:</code> method, and (if
the method always returns <code>YES</code>, you give it
a final <code>nil</code> argument to mark the end of the
document.
</p>
<p>
On completion of parsing a valid document, the
<code>document</code> method returns the resulting parsed document.
</p>
<h2>Instance Variables </h2>
<ul>
@ -147,10 +162,24 @@
<h3><a name ="method-8">parse:</a></h3>
- (BOOL) <b>parse:</b> (NSData*)rawData;<br>
This method is called repeatedly to pass raw mime data into
the parser. It should be called with a nil argument at the
end of the data - to inform the parser that it has been given
all the available information.
<p>
This method is called repeatedly to pass raw mime data into
the parser. It returns <code>YES</code> as long as it wants
more data to complete parsing of a document, and <code>NO</code>
if parsing is complete, either due to having reached the end of
a document or due to an error.
</p>
<p>
Since it is not always possible to determine if the end of a
MIME document has been reached from its content, the method
may need to be called with a nil argument after you have
passed all the data to it ... this tells it that the data
is complete.
</p>
<hr>
<h3><a name ="method-9">parseHeader:</a></h3>