You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-dev@james.apache.org by ba...@apache.org on 2006/08/27 20:20:43 UTC
svn commit: r437432 [30/34] - in /james/site/trunk/www/mime4j: ./ apidocs/
apidocs/org/ apidocs/org/mime4j/ apidocs/org/mime4j/class-use/
apidocs/org/mime4j/decoder/ apidocs/org/mime4j/decoder/class-use/
apidocs/org/mime4j/field/ apidocs/org/mime4j/fie...
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Builder.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Builder.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Builder.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Builder.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,239 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Builder xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/address/Builder.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>import</strong> java.util.ArrayList;
+<a name="19" href="#19">19</a> <strong>import</strong> java.util.Iterator;
+<a name="20" href="#20">20</a>
+<a name="21" href="#21">21</a> <strong>import</strong> org.mime4j.decoder.DecoderUtil;
+<a name="22" href="#22">22</a> <strong>import</strong> org.mime4j.field.address.parser.*;
+<a name="23" href="#23">23</a>
+<a name="24" href="#24">24</a> <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a> <em> * Transforms the JJTree-generated abstract syntax tree</em>
+<a name="26" href="#26">26</a> <em> * into a graph of org.mime4j.field.address objects.</em>
+<a name="27" href="#27">27</a> <em> *</em>
+<a name="28" href="#28">28</a> <em> * @author Joe Cheng &lt;code@joecheng.com&gt;</em>
+<a name="29" href="#29">29</a> <em> */</em>
+<a name="30" href="#30">30</a> <strong>class</strong> <a href="../../../../org/mime4j/field/address/Builder.html">Builder</a> {
+<a name="31" href="#31">31</a>
+<a name="32" href="#32">32</a> <strong>private</strong> <strong>static</strong> <a href="../../../../org/mime4j/field/address/Builder.html">Builder</a> singleton = <strong>new</strong> <a href="../../../../org/mime4j/field/address/Builder.html">Builder</a>();
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> <strong>public</strong> <strong>static</strong> <a href="../../../../org/mime4j/field/address/Builder.html">Builder</a> getInstance() {
+<a name="35" href="#35">35</a> <strong>return</strong> singleton;
+<a name="36" href="#36">36</a> }
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a>
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/AddressList.html">AddressList</a> buildAddressList(ASTaddress_list node) {
+<a name="41" href="#41">41</a> ArrayList list = <strong>new</strong> ArrayList();
+<a name="42" href="#42">42</a> <strong>for</strong> (<strong>int</strong> i = 0; i < node.jjtGetNumChildren(); i++) {
+<a name="43" href="#43">43</a> ASTaddress childNode = (ASTaddress) node.jjtGetChild(i);
+<a name="44" href="#44">44</a> Address address = buildAddress(childNode);
+<a name="45" href="#45">45</a> list.add(address);
+<a name="46" href="#46">46</a> }
+<a name="47" href="#47">47</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/AddressList.html">AddressList</a>(list, <strong>true</strong>);
+<a name="48" href="#48">48</a> }
+<a name="49" href="#49">49</a>
+<a name="50" href="#50">50</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/Address.html">Address</a> buildAddress(ASTaddress node) {
+<a name="51" href="#51">51</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="52" href="#52">52</a> Node n = it.nextNode();
+<a name="53" href="#53">53</a> <strong>if</strong> (n instanceof ASTaddr_spec) {
+<a name="54" href="#54">54</a> <strong>return</strong> buildAddrSpec((ASTaddr_spec)n);
+<a name="55" href="#55">55</a> }
+<a name="56" href="#56">56</a> <strong>else</strong> <strong>if</strong> (n instanceof ASTangle_addr) {
+<a name="57" href="#57">57</a> <strong>return</strong> buildAngleAddr((ASTangle_addr)n);
+<a name="58" href="#58">58</a> }
+<a name="59" href="#59">59</a> <strong>else</strong> <strong>if</strong> (n instanceof ASTphrase) {
+<a name="60" href="#60">60</a> String name = buildString((ASTphrase)n, false);
+<a name="61" href="#61">61</a> Node n2 = it.nextNode();
+<a name="62" href="#62">62</a> <strong>if</strong> (n2 instanceof ASTgroup_body) {
+<a name="63" href="#63">63</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/Group.html">Group</a>(name, buildGroupBody((ASTgroup_body)n2));
+<a name="64" href="#64">64</a> }
+<a name="65" href="#65">65</a> <strong>else</strong> <strong>if</strong> (n2 instanceof ASTangle_addr) {
+<a name="66" href="#66">66</a> name = DecoderUtil.decodeEncodedWords(name);
+<a name="67" href="#67">67</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a>(name, buildAngleAddr((ASTangle_addr)n2));
+<a name="68" href="#68">68</a> }
+<a name="69" href="#69">69</a> <strong>else</strong> {
+<a name="70" href="#70">70</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="71" href="#71">71</a> }
+<a name="72" href="#72">72</a> }
+<a name="73" href="#73">73</a> <strong>else</strong> {
+<a name="74" href="#74">74</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="75" href="#75">75</a> }
+<a name="76" href="#76">76</a> }
+<a name="77" href="#77">77</a>
+<a name="78" href="#78">78</a>
+<a name="79" href="#79">79</a>
+<a name="80" href="#80">80</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a> buildGroupBody(ASTgroup_body node) {
+<a name="81" href="#81">81</a> ArrayList results = <strong>new</strong> ArrayList();
+<a name="82" href="#82">82</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="83" href="#83">83</a> <strong>while</strong> (it.hasNext()) {
+<a name="84" href="#84">84</a> Node n = it.nextNode();
+<a name="85" href="#85">85</a> <strong>if</strong> (n instanceof ASTmailbox)
+<a name="86" href="#86">86</a> results.add(buildMailbox((ASTmailbox)n));
+<a name="87" href="#87">87</a> <strong>else</strong>
+<a name="88" href="#88">88</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="89" href="#89">89</a> }
+<a name="90" href="#90">90</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a>(results, <strong>true</strong>);
+<a name="91" href="#91">91</a> }
+<a name="92" href="#92">92</a>
+<a name="93" href="#93">93</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> buildMailbox(ASTmailbox node) {
+<a name="94" href="#94">94</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="95" href="#95">95</a> Node n = it.nextNode();
+<a name="96" href="#96">96</a> <strong>if</strong> (n instanceof ASTaddr_spec) {
+<a name="97" href="#97">97</a> <strong>return</strong> buildAddrSpec((ASTaddr_spec)n);
+<a name="98" href="#98">98</a> }
+<a name="99" href="#99">99</a> <strong>else</strong> <strong>if</strong> (n instanceof ASTangle_addr) {
+<a name="100" href="#100">100</a> <strong>return</strong> buildAngleAddr((ASTangle_addr)n);
+<a name="101" href="#101">101</a> }
+<a name="102" href="#102">102</a> <strong>else</strong> <strong>if</strong> (n instanceof ASTname_addr) {
+<a name="103" href="#103">103</a> <strong>return</strong> buildNameAddr((ASTname_addr)n);
+<a name="104" href="#104">104</a> }
+<a name="105" href="#105">105</a> <strong>else</strong> {
+<a name="106" href="#106">106</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="107" href="#107">107</a> }
+<a name="108" href="#108">108</a> }
+<a name="109" href="#109">109</a>
+<a name="110" href="#110">110</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a> buildNameAddr(ASTname_addr node) {
+<a name="111" href="#111">111</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="112" href="#112">112</a> Node n = it.nextNode();
+<a name="113" href="#113">113</a> String name;
+<a name="114" href="#114">114</a> <strong>if</strong> (n instanceof ASTphrase) {
+<a name="115" href="#115">115</a> name = buildString((ASTphrase)n, false);
+<a name="116" href="#116">116</a> }
+<a name="117" href="#117">117</a> <strong>else</strong> {
+<a name="118" href="#118">118</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="119" href="#119">119</a> }
+<a name="120" href="#120">120</a>
+<a name="121" href="#121">121</a> n = it.nextNode();
+<a name="122" href="#122">122</a> <strong>if</strong> (n instanceof ASTangle_addr) {
+<a name="123" href="#123">123</a> name = DecoderUtil.decodeEncodedWords(name);
+<a name="124" href="#124">124</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a>(name, buildAngleAddr((ASTangle_addr) n));
+<a name="125" href="#125">125</a> }
+<a name="126" href="#126">126</a> <strong>else</strong> {
+<a name="127" href="#127">127</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="128" href="#128">128</a> }
+<a name="129" href="#129">129</a> }
+<a name="130" href="#130">130</a>
+<a name="131" href="#131">131</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> buildAngleAddr(ASTangle_addr node) {
+<a name="132" href="#132">132</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="133" href="#133">133</a> DomainList route = <strong>null</strong>;
+<a name="134" href="#134">134</a> Node n = it.nextNode();
+<a name="135" href="#135">135</a> <strong>if</strong> (n instanceof ASTroute) {
+<a name="136" href="#136">136</a> route = buildRoute((ASTroute)n);
+<a name="137" href="#137">137</a> n = it.nextNode();
+<a name="138" href="#138">138</a> }
+<a name="139" href="#139">139</a> <strong>else</strong> <strong>if</strong> (n instanceof ASTaddr_spec)
+<a name="140" href="#140">140</a> ; <em class="comment">// do nothing</em>
+<a name="141" href="#141">141</a> <strong>else</strong>
+<a name="142" href="#142">142</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="143" href="#143">143</a>
+<a name="144" href="#144">144</a> <strong>if</strong> (n instanceof ASTaddr_spec)
+<a name="145" href="#145">145</a> <strong>return</strong> buildAddrSpec(route, (ASTaddr_spec)n);
+<a name="146" href="#146">146</a> <strong>else</strong>
+<a name="147" href="#147">147</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="148" href="#148">148</a> }
+<a name="149" href="#149">149</a>
+<a name="150" href="#150">150</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> buildRoute(ASTroute node) {
+<a name="151" href="#151">151</a> ArrayList results = <strong>new</strong> ArrayList(node.jjtGetNumChildren());
+<a name="152" href="#152">152</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="153" href="#153">153</a> <strong>while</strong> (it.hasNext()) {
+<a name="154" href="#154">154</a> Node n = it.nextNode();
+<a name="155" href="#155">155</a> <strong>if</strong> (n instanceof ASTdomain)
+<a name="156" href="#156">156</a> results.add(buildString((ASTdomain)n, <strong>true</strong>));
+<a name="157" href="#157">157</a> <strong>else</strong>
+<a name="158" href="#158">158</a> <strong>throw</strong> <strong>new</strong> IllegalStateException();
+<a name="159" href="#159">159</a> }
+<a name="160" href="#160">160</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a>(results, <strong>true</strong>);
+<a name="161" href="#161">161</a> }
+<a name="162" href="#162">162</a>
+<a name="163" href="#163">163</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> buildAddrSpec(ASTaddr_spec node) {
+<a name="164" href="#164">164</a> <strong>return</strong> buildAddrSpec(<strong>null</strong>, node);
+<a name="165" href="#165">165</a> }
+<a name="166" href="#166">166</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> buildAddrSpec(<a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> route, ASTaddr_spec node) {
+<a name="167" href="#167">167</a> ChildNodeIterator it = <strong>new</strong> ChildNodeIterator(node);
+<a name="168" href="#168">168</a> String localPart = buildString((ASTlocal_part)it.nextNode(), <strong>true</strong>);
+<a name="169" href="#169">169</a> String domain = buildString((ASTdomain)it.nextNode(), <strong>true</strong>);
+<a name="170" href="#170">170</a> <strong>return</strong> <strong>new</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a>(route, localPart, domain);
+<a name="171" href="#171">171</a> }
+<a name="172" href="#172">172</a>
+<a name="173" href="#173">173</a>
+<a name="174" href="#174">174</a> <strong>private</strong> String buildString(SimpleNode node, <strong>boolean</strong> stripSpaces) {
+<a name="175" href="#175">175</a> Token head = node.firstToken;
+<a name="176" href="#176">176</a> Token tail = node.lastToken;
+<a name="177" href="#177">177</a> StringBuffer out = <strong>new</strong> StringBuffer();
+<a name="178" href="#178">178</a>
+<a name="179" href="#179">179</a> <strong>while</strong> (head != tail) {
+<a name="180" href="#180">180</a> out.append(head.image);
+<a name="181" href="#181">181</a> head = head.next;
+<a name="182" href="#182">182</a> <strong>if</strong> (!stripSpaces)
+<a name="183" href="#183">183</a> addSpecials(out, head.specialToken);
+<a name="184" href="#184">184</a> }
+<a name="185" href="#185">185</a> out.append(tail.image);
+<a name="186" href="#186">186</a>
+<a name="187" href="#187">187</a> <strong>return</strong> out.toString();
+<a name="188" href="#188">188</a> }
+<a name="189" href="#189">189</a>
+<a name="190" href="#190">190</a> <strong>private</strong> <strong>void</strong> addSpecials(StringBuffer out, Token specialToken) {
+<a name="191" href="#191">191</a> <strong>if</strong> (specialToken != <strong>null</strong>) {
+<a name="192" href="#192">192</a> addSpecials(out, specialToken.specialToken);
+<a name="193" href="#193">193</a> out.append(specialToken.image);
+<a name="194" href="#194">194</a> }
+<a name="195" href="#195">195</a> }
+<a name="196" href="#196">196</a>
+<a name="197" href="#197">197</a> <strong>private</strong> <strong>static</strong> <strong>class</strong> ChildNodeIterator implements Iterator {
+<a name="198" href="#198">198</a>
+<a name="199" href="#199">199</a> <strong>private</strong> SimpleNode simpleNode;
+<a name="200" href="#200">200</a> <strong>private</strong> <strong>int</strong> index;
+<a name="201" href="#201">201</a> <strong>private</strong> <strong>int</strong> len;
+<a name="202" href="#202">202</a>
+<a name="203" href="#203">203</a> <strong>public</strong> ChildNodeIterator(SimpleNode simpleNode) {
+<a name="204" href="#204">204</a> <strong>this</strong>.simpleNode = simpleNode;
+<a name="205" href="#205">205</a> <strong>this</strong>.len = simpleNode.jjtGetNumChildren();
+<a name="206" href="#206">206</a> <strong>this</strong>.index = 0;
+<a name="207" href="#207">207</a> }
+<a name="208" href="#208">208</a>
+<a name="209" href="#209">209</a> <strong>public</strong> <strong>void</strong> remove() {
+<a name="210" href="#210">210</a> <strong>throw</strong> <strong>new</strong> UnsupportedOperationException();
+<a name="211" href="#211">211</a> }
+<a name="212" href="#212">212</a>
+<a name="213" href="#213">213</a> <strong>public</strong> <strong>boolean</strong> hasNext() {
+<a name="214" href="#214">214</a> <strong>return</strong> index < len;
+<a name="215" href="#215">215</a> }
+<a name="216" href="#216">216</a>
+<a name="217" href="#217">217</a> <strong>public</strong> Object next() {
+<a name="218" href="#218">218</a> <strong>return</strong> nextNode();
+<a name="219" href="#219">219</a> }
+<a name="220" href="#220">220</a>
+<a name="221" href="#221">221</a> <strong>public</strong> Node nextNode() {
+<a name="222" href="#222">222</a> <strong>return</strong> simpleNode.jjtGetChild(index++);
+<a name="223" href="#223">223</a> }
+<a name="224" href="#224">224</a>
+<a name="225" href="#225">225</a> }
+<a name="226" href="#226">226</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Builder.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/DomainList.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/DomainList.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/DomainList.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/DomainList.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,85 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DomainList xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/address/DomainList.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>import</strong> java.util.ArrayList;
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <em>/**<em>*</em></em>
+<a name="21" href="#21">21</a> <em> * An immutable, random-access list of Strings (that </em>
+<a name="22" href="#22">22</a> <em> * are supposedly domain names or domain literals).</em>
+<a name="23" href="#23">23</a> <em> *</em>
+<a name="24" href="#24">24</a> <em> * @author Joe Cheng &lt;code@joecheng.com&gt;</em>
+<a name="25" href="#25">25</a> <em> */</em>
+<a name="26" href="#26">26</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> {
+<a name="27" href="#27">27</a> <strong>private</strong> ArrayList domains;
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a> <em> * @param domains An ArrayList that contains only String objects. </em>
+<a name="31" href="#31">31</a> <em> * @param dontCopy true iff it is not possible for the domains ArrayList to be modified by someone else.</em>
+<a name="32" href="#32">32</a> <em> */</em>
+<a name="33" href="#33">33</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a>(ArrayList domains, <strong>boolean</strong> dontCopy) {
+<a name="34" href="#34">34</a> <strong>if</strong> (domains != <strong>null</strong>)
+<a name="35" href="#35">35</a> <strong>this</strong>.domains = (dontCopy ? domains : (ArrayList) domains.clone());
+<a name="36" href="#36">36</a> <strong>else</strong>
+<a name="37" href="#37">37</a> <strong>this</strong>.domains = <strong>new</strong> ArrayList(0);
+<a name="38" href="#38">38</a> }
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> <em>/**<em>*</em></em>
+<a name="41" href="#41">41</a> <em> * The number of elements in this list.</em>
+<a name="42" href="#42">42</a> <em> */</em>
+<a name="43" href="#43">43</a> <strong>public</strong> <strong>int</strong> size() {
+<a name="44" href="#44">44</a> <strong>return</strong> domains.size();
+<a name="45" href="#45">45</a> }
+<a name="46" href="#46">46</a>
+<a name="47" href="#47">47</a> <em>/**<em>*</em></em>
+<a name="48" href="#48">48</a> <em> * Gets the domain name or domain literal at the</em>
+<a name="49" href="#49">49</a> <em> * specified index.</em>
+<a name="50" href="#50">50</a> <em> * @throws IndexOutOfBoundsException If index is &lt; 0 or &gt;= size().</em>
+<a name="51" href="#51">51</a> <em> */</em>
+<a name="52" href="#52">52</a> <strong>public</strong> String get(<strong>int</strong> index) {
+<a name="53" href="#53">53</a> <strong>if</strong> (0 > index || size() <= index)
+<a name="54" href="#54">54</a> <strong>throw</strong> <strong>new</strong> IndexOutOfBoundsException();
+<a name="55" href="#55">55</a> <strong>return</strong> (String) domains.get(index);
+<a name="56" href="#56">56</a> }
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> <em>/**<em>*</em></em>
+<a name="59" href="#59">59</a> <em> * Returns the list of domains formatted as a route</em>
+<a name="60" href="#60">60</a> <em> * string (not including the trailing ':'). </em>
+<a name="61" href="#61">61</a> <em> */</em>
+<a name="62" href="#62">62</a> <strong>public</strong> String toRouteString() {
+<a name="63" href="#63">63</a> StringBuffer out = <strong>new</strong> StringBuffer();
+<a name="64" href="#64">64</a> <strong>for</strong> (<strong>int</strong> i = 0; i < domains.size(); i++) {
+<a name="65" href="#65">65</a> out.append(<span class="string">"@"</span>);
+<a name="66" href="#66">66</a> out.append(get(i));
+<a name="67" href="#67">67</a> <strong>if</strong> (i + 1 < domains.size())
+<a name="68" href="#68">68</a> out.append(<span class="string">","</span>);
+<a name="69" href="#69">69</a> }
+<a name="70" href="#70">70</a> <strong>return</strong> out.toString();
+<a name="71" href="#71">71</a> }
+<a name="72" href="#72">72</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/DomainList.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Group.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Group.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Group.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Group.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,82 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Group xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/address/Group.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>import</strong> java.util.ArrayList;
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <em>/**<em>*</em></em>
+<a name="21" href="#21">21</a> <em> * A named group of zero or more mailboxes. </em>
+<a name="22" href="#22">22</a> <em> *</em>
+<a name="23" href="#23">23</a> <em> * @author Joe Cheng &lt;code@joecheng.com&gt;</em>
+<a name="24" href="#24">24</a> <em> */</em>
+<a name="25" href="#25">25</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/mime4j/field/address/Group.html">Group</a> <strong>extends</strong> <a href="../../../../org/mime4j/field/address/Address.html">Address</a> {
+<a name="26" href="#26">26</a> <strong>private</strong> String name;
+<a name="27" href="#27">27</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a> mailboxList;
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a> <em> * @param name The group name.</em>
+<a name="31" href="#31">31</a> <em> * @param mailboxes The mailboxes in this group.</em>
+<a name="32" href="#32">32</a> <em> */</em>
+<a name="33" href="#33">33</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/Group.html">Group</a>(String name, <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a> mailboxes) {
+<a name="34" href="#34">34</a> <strong>this</strong>.name = name;
+<a name="35" href="#35">35</a> <strong>this</strong>.mailboxList = mailboxes;
+<a name="36" href="#36">36</a> }
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a> <em>/**<em>*</em></em>
+<a name="39" href="#39">39</a> <em> * Returns the group name.</em>
+<a name="40" href="#40">40</a> <em> */</em>
+<a name="41" href="#41">41</a> <strong>public</strong> String getName() {
+<a name="42" href="#42">42</a> <strong>return</strong> name;
+<a name="43" href="#43">43</a> }
+<a name="44" href="#44">44</a>
+<a name="45" href="#45">45</a> <em>/**<em>*</em></em>
+<a name="46" href="#46">46</a> <em> * Returns the mailboxes in this group.</em>
+<a name="47" href="#47">47</a> <em> */</em>
+<a name="48" href="#48">48</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a> getMailboxes() {
+<a name="49" href="#49">49</a> <strong>return</strong> mailboxList;
+<a name="50" href="#50">50</a> }
+<a name="51" href="#51">51</a>
+<a name="52" href="#52">52</a> <strong>public</strong> String toString() {
+<a name="53" href="#53">53</a> StringBuffer buf = <strong>new</strong> StringBuffer();
+<a name="54" href="#54">54</a> buf.append(name);
+<a name="55" href="#55">55</a> buf.append(<span class="string">":"</span>);
+<a name="56" href="#56">56</a> <strong>for</strong> (<strong>int</strong> i = 0; i < mailboxList.size(); i++) {
+<a name="57" href="#57">57</a> buf.append(mailboxList.get(i).toString());
+<a name="58" href="#58">58</a> <strong>if</strong> (i + 1 < mailboxList.size())
+<a name="59" href="#59">59</a> buf.append(<span class="string">","</span>);
+<a name="60" href="#60">60</a> }
+<a name="61" href="#61">61</a> buf.append(<span class="string">";"</span>);
+<a name="62" href="#62">62</a> <strong>return</strong> buf.toString();
+<a name="63" href="#63">63</a> }
+<a name="64" href="#64">64</a>
+<a name="65" href="#65">65</a> <strong>protected</strong> <strong>void</strong> doAddMailboxesTo(ArrayList results) {
+<a name="66" href="#66">66</a> <strong>for</strong> (<strong>int</strong> i = 0; i < mailboxList.size(); i++)
+<a name="67" href="#67">67</a> results.add(mailboxList.get(i));
+<a name="68" href="#68">68</a> }
+<a name="69" href="#69">69</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Group.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Mailbox.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Mailbox.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Mailbox.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Mailbox.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,128 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Mailbox xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/address/Mailbox.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>import</strong> java.util.ArrayList;
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <em>/**<em>*</em></em>
+<a name="21" href="#21">21</a> <em> * Represents a single e-mail address. </em>
+<a name="22" href="#22">22</a> <em> *</em>
+<a name="23" href="#23">23</a> <em> * @author Joe Cheng &lt;code@joecheng.com&gt;</em>
+<a name="24" href="#24">24</a> <em> */</em>
+<a name="25" href="#25">25</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> <strong>extends</strong> <a href="../../../../org/mime4j/field/address/Address.html">Address</a> {
+<a name="26" href="#26">26</a> <strong>private</strong> <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> route;
+<a name="27" href="#27">27</a> <strong>private</strong> String localPart;
+<a name="28" href="#28">28</a> <strong>private</strong> String domain;
+<a name="29" href="#29">29</a>
+<a name="30" href="#30">30</a> <em>/**<em>*</em></em>
+<a name="31" href="#31">31</a> <em> * Creates a mailbox without a route. Routes are obsolete.</em>
+<a name="32" href="#32">32</a> <em> * @param localPart The part of the e-mail address to the left of the "@".</em>
+<a name="33" href="#33">33</a> <em> * @param domain The part of the e-mail address to the right of the "@".</em>
+<a name="34" href="#34">34</a> <em> */</em>
+<a name="35" href="#35">35</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a>(String localPart, String domain) {
+<a name="36" href="#36">36</a> <strong>this</strong>(<strong>null</strong>, localPart, domain);
+<a name="37" href="#37">37</a> }
+<a name="38" href="#38">38</a>
+<a name="39" href="#39">39</a> <em>/**<em>*</em></em>
+<a name="40" href="#40">40</a> <em> * Creates a mailbox with a route. Routes are obsolete.</em>
+<a name="41" href="#41">41</a> <em> * @param route The zero or more domains that make up the route. Can be null.</em>
+<a name="42" href="#42">42</a> <em> * @param localPart The part of the e-mail address to the left of the "@".</em>
+<a name="43" href="#43">43</a> <em> * @param domain The part of the e-mail address to the right of the "@".</em>
+<a name="44" href="#44">44</a> <em> */</em>
+<a name="45" href="#45">45</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a>(<a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> route, String localPart, String domain) {
+<a name="46" href="#46">46</a> <strong>this</strong>.route = route;
+<a name="47" href="#47">47</a> <strong>this</strong>.localPart = localPart;
+<a name="48" href="#48">48</a> <strong>this</strong>.domain = domain;
+<a name="49" href="#49">49</a> }
+<a name="50" href="#50">50</a>
+<a name="51" href="#51">51</a> <em>/**<em>*</em></em>
+<a name="52" href="#52">52</a> <em> * Returns the route list.</em>
+<a name="53" href="#53">53</a> <em> */</em>
+<a name="54" href="#54">54</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> getRoute() {
+<a name="55" href="#55">55</a> <strong>return</strong> route;
+<a name="56" href="#56">56</a> }
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> <em>/**<em>*</em></em>
+<a name="59" href="#59">59</a> <em> * Returns the left part of the e-mail address </em>
+<a name="60" href="#60">60</a> <em> * (before "@").</em>
+<a name="61" href="#61">61</a> <em> */</em>
+<a name="62" href="#62">62</a> <strong>public</strong> String getLocalPart() {
+<a name="63" href="#63">63</a> <strong>return</strong> localPart;
+<a name="64" href="#64">64</a> }
+<a name="65" href="#65">65</a>
+<a name="66" href="#66">66</a> <em>/**<em>*</em></em>
+<a name="67" href="#67">67</a> <em> * Returns the right part of the e-mail address </em>
+<a name="68" href="#68">68</a> <em> * (after "@").</em>
+<a name="69" href="#69">69</a> <em> */</em>
+<a name="70" href="#70">70</a> <strong>public</strong> String getDomain() {
+<a name="71" href="#71">71</a> <strong>return</strong> domain;
+<a name="72" href="#72">72</a> }
+<a name="73" href="#73">73</a>
+<a name="74" href="#74">74</a> <em>/**<em>*</em></em>
+<a name="75" href="#75">75</a> <em> * Formats the address as a string, not including</em>
+<a name="76" href="#76">76</a> <em> * the route.</em>
+<a name="77" href="#77">77</a> <em> * </em>
+<a name="78" href="#78">78</a> <em> * @see #getAddressString(boolean)</em>
+<a name="79" href="#79">79</a> <em> */</em>
+<a name="80" href="#80">80</a> <strong>public</strong> String getAddressString() {
+<a name="81" href="#81">81</a> <strong>return</strong> getAddressString(false);
+<a name="82" href="#82">82</a> }
+<a name="83" href="#83">83</a>
+<a name="84" href="#84">84</a> <em>/**<em>*</em></em>
+<a name="85" href="#85">85</a> <em> * Note that this value may not be usable</em>
+<a name="86" href="#86">86</a> <em> * for transport purposes, only display purposes.</em>
+<a name="87" href="#87">87</a> <em> * </em>
+<a name="88" href="#88">88</a> <em> * For example, if the unparsed address was</em>
+<a name="89" href="#89">89</a> <em> * </em>
+<a name="90" href="#90">90</a> <em> * <"Joe Cheng"@joecheng.com></em>
+<a name="91" href="#91">91</a> <em> * </em>
+<a name="92" href="#92">92</a> <em> * this method would return</em>
+<a name="93" href="#93">93</a> <em> * </em>
+<a name="94" href="#94">94</a> <em> * <Joe Cheng@joecheng.com></em>
+<a name="95" href="#95">95</a> <em> * </em>
+<a name="96" href="#96">96</a> <em> * which is not valid for transport; the local part</em>
+<a name="97" href="#97">97</a> <em> * would need to be re-quoted.</em>
+<a name="98" href="#98">98</a> <em> * </em>
+<a name="99" href="#99">99</a> <em> * @param includeRoute true if the route should be included if it exists. </em>
+<a name="100" href="#100">100</a> <em> */</em>
+<a name="101" href="#101">101</a> <strong>public</strong> String getAddressString(<strong>boolean</strong> includeRoute) {
+<a name="102" href="#102">102</a> <strong>return</strong> <span class="string">"<"</span> + (!includeRoute || route == <strong>null</strong> ? <span class="string">""</span> : route.toRouteString() + <span class="string">":"</span>)
+<a name="103" href="#103">103</a> + localPart
+<a name="104" href="#104">104</a> + (domain == <strong>null</strong> ? <span class="string">""</span> : <span class="string">"@"</span>)
+<a name="105" href="#105">105</a> + domain + <span class="string">">"</span>;
+<a name="106" href="#106">106</a> }
+<a name="107" href="#107">107</a>
+<a name="108" href="#108">108</a> <strong>protected</strong> <strong>final</strong> <strong>void</strong> doAddMailboxesTo(ArrayList results) {
+<a name="109" href="#109">109</a> results.add(<strong>this</strong>);
+<a name="110" href="#110">110</a> }
+<a name="111" href="#111">111</a>
+<a name="112" href="#112">112</a> <strong>public</strong> String toString() {
+<a name="113" href="#113">113</a> <strong>return</strong> getAddressString();
+<a name="114" href="#114">114</a> }
+<a name="115" href="#115">115</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/Mailbox.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/MailboxList.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/MailboxList.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/MailboxList.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/MailboxList.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,80 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>MailboxList xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/address/MailboxList.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>import</strong> java.util.ArrayList;
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <em>/**<em>*</em></em>
+<a name="21" href="#21">21</a> <em> * An immutable, random-access list of Mailbox objects.</em>
+<a name="22" href="#22">22</a> <em> *</em>
+<a name="23" href="#23">23</a> <em> * @author Joe Cheng &lt;code@joecheng.com&gt;</em>
+<a name="24" href="#24">24</a> <em> */</em>
+<a name="25" href="#25">25</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a> {
+<a name="26" href="#26">26</a>
+<a name="27" href="#27">27</a> <strong>private</strong> ArrayList mailboxes;
+<a name="28" href="#28">28</a>
+<a name="29" href="#29">29</a> <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a> <em> * @param mailboxes An ArrayList that contains only Mailbox objects. </em>
+<a name="31" href="#31">31</a> <em> * @param dontCopy true iff it is not possible for the mailboxes ArrayList to be modified by someone else.</em>
+<a name="32" href="#32">32</a> <em> */</em>
+<a name="33" href="#33">33</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/MailboxList.html">MailboxList</a>(ArrayList mailboxes, <strong>boolean</strong> dontCopy) {
+<a name="34" href="#34">34</a> <strong>if</strong> (mailboxes != <strong>null</strong>)
+<a name="35" href="#35">35</a> <strong>this</strong>.mailboxes = (dontCopy ? mailboxes : (ArrayList) mailboxes.clone());
+<a name="36" href="#36">36</a> <strong>else</strong>
+<a name="37" href="#37">37</a> mailboxes = <strong>new</strong> ArrayList(0);
+<a name="38" href="#38">38</a> }
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> <em>/**<em>*</em></em>
+<a name="41" href="#41">41</a> <em> * The number of elements in this list.</em>
+<a name="42" href="#42">42</a> <em> */</em>
+<a name="43" href="#43">43</a> <strong>public</strong> <strong>int</strong> size() {
+<a name="44" href="#44">44</a> <strong>return</strong> mailboxes.size();
+<a name="45" href="#45">45</a> }
+<a name="46" href="#46">46</a>
+<a name="47" href="#47">47</a> <em>/**<em>*</em></em>
+<a name="48" href="#48">48</a> <em> * Gets an address. </em>
+<a name="49" href="#49">49</a> <em> */</em>
+<a name="50" href="#50">50</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> get(<strong>int</strong> index) {
+<a name="51" href="#51">51</a> <strong>if</strong> (0 > index || size() <= index)
+<a name="52" href="#52">52</a> <strong>throw</strong> <strong>new</strong> IndexOutOfBoundsException();
+<a name="53" href="#53">53</a> <strong>return</strong> (Mailbox) mailboxes.get(index);
+<a name="54" href="#54">54</a> }
+<a name="55" href="#55">55</a>
+<a name="56" href="#56">56</a> <em>/**<em>*</em></em>
+<a name="57" href="#57">57</a> <em> * Dumps a representation of this mailbox list to</em>
+<a name="58" href="#58">58</a> <em> * stdout, for debugging purposes.</em>
+<a name="59" href="#59">59</a> <em> */</em>
+<a name="60" href="#60">60</a> <strong>public</strong> <strong>void</strong> print() {
+<a name="61" href="#61">61</a> <strong>for</strong> (<strong>int</strong> i = 0; i < size(); i++) {
+<a name="62" href="#62">62</a> Mailbox mailbox = get(i);
+<a name="63" href="#63">63</a> System.out.println(mailbox.toString());
+<a name="64" href="#64">64</a> }
+<a name="65" href="#65">65</a> }
+<a name="66" href="#66">66</a>
+<a name="67" href="#67">67</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/MailboxList.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/NamedMailbox.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/NamedMailbox.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/NamedMailbox.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/NamedMailbox.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,79 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>NamedMailbox xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/address/NamedMailbox.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <em>/**<em>*</em></em>
+<a name="19" href="#19">19</a> <em> * A Mailbox that has a name/description.</em>
+<a name="20" href="#20">20</a> <em> *</em>
+<a name="21" href="#21">21</a> <em> * @author Joe Cheng &lt;code@joecheng.com&gt;</em>
+<a name="22" href="#22">22</a> <em> */</em>
+<a name="23" href="#23">23</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a> <strong>extends</strong> <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> {
+<a name="24" href="#24">24</a> <strong>private</strong> String name;
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a> <em>/**<em>*</em></em>
+<a name="27" href="#27">27</a> <em> * @see Mailbox#Mailbox(String, String)</em>
+<a name="28" href="#28">28</a> <em> */</em>
+<a name="29" href="#29">29</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a>(String name, String localPart, String domain) {
+<a name="30" href="#30">30</a> <strong>super</strong>(localPart, domain);
+<a name="31" href="#31">31</a> <strong>this</strong>.name = name;
+<a name="32" href="#32">32</a> }
+<a name="33" href="#33">33</a>
+<a name="34" href="#34">34</a> <em>/**<em>*</em></em>
+<a name="35" href="#35">35</a> <em> * @see Mailbox#Mailbox(DomainList, String, String)</em>
+<a name="36" href="#36">36</a> <em> */</em>
+<a name="37" href="#37">37</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a>(String name, <a href="../../../../org/mime4j/field/address/DomainList.html">DomainList</a> route, String localPart, String domain) {
+<a name="38" href="#38">38</a> <strong>super</strong>(route, localPart, domain);
+<a name="39" href="#39">39</a> <strong>this</strong>.name = name;
+<a name="40" href="#40">40</a> }
+<a name="41" href="#41">41</a>
+<a name="42" href="#42">42</a> <em>/**<em>*</em></em>
+<a name="43" href="#43">43</a> <em> * Creates a named mailbox based on an unnamed mailbox. </em>
+<a name="44" href="#44">44</a> <em> */</em>
+<a name="45" href="#45">45</a> <strong>public</strong> <a href="../../../../org/mime4j/field/address/NamedMailbox.html">NamedMailbox</a>(String name, <a href="../../../../org/mime4j/field/address/Mailbox.html">Mailbox</a> baseMailbox) {
+<a name="46" href="#46">46</a> <strong>super</strong>(baseMailbox.getRoute(), baseMailbox.getLocalPart(), baseMailbox.getDomain());
+<a name="47" href="#47">47</a> <strong>this</strong>.name = name;
+<a name="48" href="#48">48</a> }
+<a name="49" href="#49">49</a>
+<a name="50" href="#50">50</a> <em>/**<em>*</em></em>
+<a name="51" href="#51">51</a> <em> * Returns the name of the mailbox. </em>
+<a name="52" href="#52">52</a> <em> */</em>
+<a name="53" href="#53">53</a> <strong>public</strong> String getName() {
+<a name="54" href="#54">54</a> <strong>return</strong> <strong>this</strong>.name;
+<a name="55" href="#55">55</a> }
+<a name="56" href="#56">56</a>
+<a name="57" href="#57">57</a> <em>/**<em>*</em></em>
+<a name="58" href="#58">58</a> <em> * Same features (or problems) as Mailbox.getAddressString(boolean),</em>
+<a name="59" href="#59">59</a> <em> * only more so.</em>
+<a name="60" href="#60">60</a> <em> * </em>
+<a name="61" href="#61">61</a> <em> * @see Mailbox#getAddressString(boolean) </em>
+<a name="62" href="#62">62</a> <em> */</em>
+<a name="63" href="#63">63</a> <strong>public</strong> String getAddressString(<strong>boolean</strong> includeRoute) {
+<a name="64" href="#64">64</a> <strong>return</strong> (name == <strong>null</strong> ? <span class="string">""</span> : name + <span class="string">" "</span>) + <strong>super</strong>.getAddressString(includeRoute);
+<a name="65" href="#65">65</a> }
+<a name="66" href="#66">66</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/NamedMailbox.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-frame.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-frame.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-frame.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,45 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache James mime4j 0.4-SNAPSHOT Reference Package org.mime4j.field.address</title>
+ <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.mime4j.field.address</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+ <li>
+ <a href="Address.html" target="classFrame">Address</a>
+ </li>
+ <li>
+ <a href="AddressList.html" target="classFrame">AddressList</a>
+ </li>
+ <li>
+ <a href="Builder.html" target="classFrame">Builder</a>
+ </li>
+ <li>
+ <a href="DomainList.html" target="classFrame">DomainList</a>
+ </li>
+ <li>
+ <a href="Group.html" target="classFrame">Group</a>
+ </li>
+ <li>
+ <a href="Mailbox.html" target="classFrame">Mailbox</a>
+ </li>
+ <li>
+ <a href="MailboxList.html" target="classFrame">MailboxList</a>
+ </li>
+ <li>
+ <a href="NamedMailbox.html" target="classFrame">NamedMailbox</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-summary.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-summary.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-summary.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,102 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache James mime4j 0.4-SNAPSHOT Reference Package $name</title>
+ <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
+ </head>
+ <body>
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <h2>Package org.mime4j.field.address</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <a href="Address.html" target="classFrame">Address</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="AddressList.html" target="classFrame">AddressList</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="Builder.html" target="classFrame">Builder</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="DomainList.html" target="classFrame">DomainList</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="Group.html" target="classFrame">Group</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="Mailbox.html" target="classFrame">Mailbox</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="MailboxList.html" target="classFrame">MailboxList</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="NamedMailbox.html" target="classFrame">NamedMailbox</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+ <hr />
+ Copyright © 2004 Apache Software Foundation. All Rights Reserved.
+ </body>
+</html>
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/package-summary.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/BaseNode.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/BaseNode.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/BaseNode.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/BaseNode.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>BaseNode xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../../../apidocs/org/mime4j/field/address/parser/BaseNode.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.address.parser;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>public</strong> <strong>abstract</strong> <strong>class</strong> <a href="../../../../../org/mime4j/field/address/parser/BaseNode.html">BaseNode</a> implements Node {
+<a name="19" href="#19">19</a>
+<a name="20" href="#20">20</a> <strong>public</strong> Token firstToken;
+<a name="21" href="#21">21</a> <strong>public</strong> Token lastToken;
+<a name="22" href="#22">22</a>
+<a name="23" href="#23">23</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/BaseNode.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-frame.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-frame.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-frame.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,24 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache James mime4j 0.4-SNAPSHOT Reference Package org.mime4j.field.address.parser</title>
+ <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.mime4j.field.address.parser</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+ <li>
+ <a href="BaseNode.html" target="classFrame">BaseNode</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-summary.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-summary.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-summary.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-summary.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,67 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache James mime4j 0.4-SNAPSHOT Reference Package $name</title>
+ <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
+ </head>
+ <body>
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./\.\./overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./\.\./index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+ <h2>Package org.mime4j.field.address.parser</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <a href="BaseNode.html" target="classFrame">BaseNode</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./\.\./overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="\.\./\.\./\.\./\.\./\.\./index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+ <hr />
+ Copyright © 2004 Apache Software Foundation. All Rights Reserved.
+ </body>
+</html>
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/address/parser/package-summary.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/DateTime.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/DateTime.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/DateTime.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/DateTime.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,136 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DateTime xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../../../../../apidocs/org/mime4j/field/datetime/DateTime.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*</em>
+<a name="2" href="#2">2</a> <em class="comment"> * Copyright 2004 the mime4j project</em>
+<a name="3" href="#3">3</a> <em class="comment"> *</em>
+<a name="4" href="#4">4</a> <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a> <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a> <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a> <em class="comment"> *</em>
+<a name="8" href="#8">8</a> <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a> <em class="comment"> *</em>
+<a name="10" href="#10">10</a> <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a> <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a> <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a> <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a> <em class="comment"> * limitations under the License.</em>
+<a name="15" href="#15">15</a> <em class="comment"> */</em>
+<a name="16" href="#16">16</a> <strong>package</strong> org.mime4j.field.datetime;
+<a name="17" href="#17">17</a>
+<a name="18" href="#18">18</a> <strong>import</strong> org.mime4j.field.datetime.parser.DateTimeParser;
+<a name="19" href="#19">19</a> <strong>import</strong> org.mime4j.field.datetime.parser.ParseException;
+<a name="20" href="#20">20</a> <strong>import</strong> org.mime4j.field.datetime.parser.TokenMgrError;
+<a name="21" href="#21">21</a>
+<a name="22" href="#22">22</a> <strong>import</strong> java.util.Date;
+<a name="23" href="#23">23</a> <strong>import</strong> java.util.Calendar;
+<a name="24" href="#24">24</a> <strong>import</strong> java.util.TimeZone;
+<a name="25" href="#25">25</a> <strong>import</strong> java.util.GregorianCalendar;
+<a name="26" href="#26">26</a> <strong>import</strong> java.io.StringReader;
+<a name="27" href="#27">27</a>
+<a name="28" href="#28">28</a> <strong>public</strong> <strong>class</strong> <a href="../../../../org/mime4j/field/datetime/DateTime.html">DateTime</a> {
+<a name="29" href="#29">29</a> <strong>private</strong> <strong>final</strong> Date date;
+<a name="30" href="#30">30</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> year;
+<a name="31" href="#31">31</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> month;
+<a name="32" href="#32">32</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> day;
+<a name="33" href="#33">33</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> hour;
+<a name="34" href="#34">34</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> minute;
+<a name="35" href="#35">35</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> second;
+<a name="36" href="#36">36</a> <strong>private</strong> <strong>final</strong> <strong>int</strong> timeZone;
+<a name="37" href="#37">37</a>
+<a name="38" href="#38">38</a> <strong>public</strong> <a href="../../../../org/mime4j/field/datetime/DateTime.html">DateTime</a>(String yearString, <strong>int</strong> month, <strong>int</strong> day, <strong>int</strong> hour, <strong>int</strong> minute, <strong>int</strong> second, <strong>int</strong> timeZone) {
+<a name="39" href="#39">39</a> <strong>this</strong>.year = convertToYear(yearString);
+<a name="40" href="#40">40</a> <strong>this</strong>.date = convertToDate(year, month, day, hour, minute, second, timeZone);
+<a name="41" href="#41">41</a> <strong>this</strong>.month = month;
+<a name="42" href="#42">42</a> <strong>this</strong>.day = day;
+<a name="43" href="#43">43</a> <strong>this</strong>.hour = hour;
+<a name="44" href="#44">44</a> <strong>this</strong>.minute = minute;
+<a name="45" href="#45">45</a> <strong>this</strong>.second = second;
+<a name="46" href="#46">46</a> <strong>this</strong>.timeZone = timeZone;
+<a name="47" href="#47">47</a> }
+<a name="48" href="#48">48</a>
+<a name="49" href="#49">49</a> <strong>private</strong> <strong>int</strong> convertToYear(String yearString) {
+<a name="50" href="#50">50</a> <strong>int</strong> year = Integer.parseInt(yearString);
+<a name="51" href="#51">51</a> <strong>switch</strong> (yearString.length()) {
+<a name="52" href="#52">52</a> <strong>case</strong> 1:
+<a name="53" href="#53">53</a> <strong>case</strong> 2:
+<a name="54" href="#54">54</a> <strong>if</strong> (year >= 0 && year < 50)
+<a name="55" href="#55">55</a> <strong>return</strong> 2000 + year;
+<a name="56" href="#56">56</a> <strong>else</strong>
+<a name="57" href="#57">57</a> <strong>return</strong> 1900 + year;
+<a name="58" href="#58">58</a> <strong>case</strong> 3:
+<a name="59" href="#59">59</a> <strong>return</strong> 1900 + year;
+<a name="60" href="#60">60</a> <strong>default</strong>:
+<a name="61" href="#61">61</a> <strong>return</strong> year;
+<a name="62" href="#62">62</a> }
+<a name="63" href="#63">63</a> }
+<a name="64" href="#64">64</a>
+<a name="65" href="#65">65</a> <strong>public</strong> <strong>static</strong> Date convertToDate(<strong>int</strong> year, <strong>int</strong> month, <strong>int</strong> day, <strong>int</strong> hour, <strong>int</strong> minute, <strong>int</strong> second, <strong>int</strong> timeZone) {
+<a name="66" href="#66">66</a> Calendar c = <strong>new</strong> GregorianCalendar(TimeZone.getTimeZone(<span class="string">"GMT+0"</span>));
+<a name="67" href="#67">67</a> c.set(year, month - 1, day, hour, minute, second);
+<a name="68" href="#68">68</a> c.set(Calendar.MILLISECOND, 0);
+<a name="69" href="#69">69</a>
+<a name="70" href="#70">70</a> <strong>if</strong> (timeZone != Integer.MIN_VALUE) {
+<a name="71" href="#71">71</a> <strong>int</strong> minutes = ((timeZone / 100) * 60) + timeZone % 100;
+<a name="72" href="#72">72</a> c.add(Calendar.MINUTE, -1 * minutes);
+<a name="73" href="#73">73</a> }
+<a name="74" href="#74">74</a>
+<a name="75" href="#75">75</a> <strong>return</strong> c.getTime();
+<a name="76" href="#76">76</a> }
+<a name="77" href="#77">77</a>
+<a name="78" href="#78">78</a> <strong>public</strong> Date getDate() {
+<a name="79" href="#79">79</a> <strong>return</strong> date;
+<a name="80" href="#80">80</a> }
+<a name="81" href="#81">81</a>
+<a name="82" href="#82">82</a> <strong>public</strong> <strong>int</strong> getYear() {
+<a name="83" href="#83">83</a> <strong>return</strong> year;
+<a name="84" href="#84">84</a> }
+<a name="85" href="#85">85</a>
+<a name="86" href="#86">86</a> <strong>public</strong> <strong>int</strong> getMonth() {
+<a name="87" href="#87">87</a> <strong>return</strong> month;
+<a name="88" href="#88">88</a> }
+<a name="89" href="#89">89</a>
+<a name="90" href="#90">90</a> <strong>public</strong> <strong>int</strong> getDay() {
+<a name="91" href="#91">91</a> <strong>return</strong> day;
+<a name="92" href="#92">92</a> }
+<a name="93" href="#93">93</a>
+<a name="94" href="#94">94</a> <strong>public</strong> <strong>int</strong> getHour() {
+<a name="95" href="#95">95</a> <strong>return</strong> hour;
+<a name="96" href="#96">96</a> }
+<a name="97" href="#97">97</a>
+<a name="98" href="#98">98</a> <strong>public</strong> <strong>int</strong> getMinute() {
+<a name="99" href="#99">99</a> <strong>return</strong> minute;
+<a name="100" href="#100">100</a> }
+<a name="101" href="#101">101</a>
+<a name="102" href="#102">102</a> <strong>public</strong> <strong>int</strong> getSecond() {
+<a name="103" href="#103">103</a> <strong>return</strong> second;
+<a name="104" href="#104">104</a> }
+<a name="105" href="#105">105</a>
+<a name="106" href="#106">106</a> <strong>public</strong> <strong>int</strong> getTimeZone() {
+<a name="107" href="#107">107</a> <strong>return</strong> timeZone;
+<a name="108" href="#108">108</a> }
+<a name="109" href="#109">109</a>
+<a name="110" href="#110">110</a> <strong>public</strong> <strong>void</strong> print() {
+<a name="111" href="#111">111</a> System.out.println(getYear() + <span class="string">" "</span> + getMonth() + <span class="string">" "</span> + getDay() + <span class="string">"; "</span> + getHour() + <span class="string">" "</span> + getMinute() + <span class="string">" "</span> + getSecond() + <span class="string">" "</span> + getTimeZone());
+<a name="112" href="#112">112</a> }
+<a name="113" href="#113">113</a>
+<a name="114" href="#114">114</a>
+<a name="115" href="#115">115</a> <strong>public</strong> <strong>static</strong> <a href="../../../../org/mime4j/field/datetime/DateTime.html">DateTime</a> parse(String dateString) throws ParseException {
+<a name="116" href="#116">116</a> <strong>try</strong> {
+<a name="117" href="#117">117</a> <strong>return</strong> <strong>new</strong> DateTimeParser(<strong>new</strong> StringReader(dateString)).parseAll();
+<a name="118" href="#118">118</a> }
+<a name="119" href="#119">119</a> <strong>catch</strong> (TokenMgrError err) {
+<a name="120" href="#120">120</a> <strong>throw</strong> <strong>new</strong> ParseException(err.getMessage());
+<a name="121" href="#121">121</a> }
+<a name="122" href="#122">122</a> }
+<a name="123" href="#123">123</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/DateTime.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/package-frame.html
URL: http://svn.apache.org/viewvc/james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/package-frame.html?rev=437432&view=auto
==============================================================================
--- james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/package-frame.html (added)
+++ james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/package-frame.html Sun Aug 27 11:20:29 2006
@@ -0,0 +1,24 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
+ <title>Apache James mime4j 0.4-SNAPSHOT Reference Package org.mime4j.field.datetime</title>
+ <link rel="stylesheet" type="text/css" href="\.\./\.\./\.\./\.\./stylesheet.css" title="style" />
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.mime4j.field.datetime</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+ <li>
+ <a href="DateTime.html" target="classFrame">DateTime</a>
+ </li>
+ </ul>
+
+ </body>
+</html>
Propchange: james/site/trunk/www/mime4j/xref/org/mime4j/field/datetime/package-frame.html
------------------------------------------------------------------------------
svn:eol-style = native