mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
fe0730b760
commit
a0ef32c1ec
2 changed files with 34 additions and 5 deletions
|
@ -43,7 +43,7 @@
|
||||||
<h3><a name ="cont-1">The classes</a></h3>
|
<h3><a name ="cont-1">The classes</a></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li ><a href ="GSMimeDocument.html">GSMimeDocument</a>
|
<li ><a href ="GSMimeDocument.html">GSMimeDocument</a>
|
||||||
<li ><a href ="GSMimeParser.html">GSMimearser</a>
|
<li ><a href ="GSMimeParser.html">GSMimeParser</a>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,21 @@
|
||||||
an associated document into which data is stored.
|
an associated document into which data is stored.
|
||||||
</p>
|
</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>
|
<h2>Instance Variables </h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -147,10 +162,24 @@
|
||||||
<h3><a name ="method-8">parse:</a></h3>
|
<h3><a name ="method-8">parse:</a></h3>
|
||||||
- (BOOL) <b>parse:</b> (NSData*)rawData;<br>
|
- (BOOL) <b>parse:</b> (NSData*)rawData;<br>
|
||||||
|
|
||||||
This method is called repeatedly to pass raw mime data into
|
<p>
|
||||||
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
|
This method is called repeatedly to pass raw mime data into
|
||||||
all the available information.
|
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>
|
<hr>
|
||||||
<h3><a name ="method-9">parseHeader:</a></h3>
|
<h3><a name ="method-9">parseHeader:</a></h3>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue