burton      2004/03/02 00:32:07

  Modified:    feedparser/src/java/org/apache/commons/feedparser/tools
                        ISO8601DateParser.java RFC822DateParser.java
  Log:
  documentation and relicense...
  
  Revision  Changes    Path
  1.2       +17 -55    
jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java
  
  Index: ISO8601DateParser.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ISO8601DateParser.java    2 Mar 2004 08:27:52 -0000       1.1
  +++ ISO8601DateParser.java    2 Mar 2004 08:32:07 -0000       1.2
  @@ -1,57 +1,17 @@
   /*
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowlegement may appear in the software itself,
  - *    if and wherever such third-party acknowlegements normally appear.
  - *
  - * 4. The names "The Jakarta Project", "FeedParser", and "Apache Software
  - *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  - *    permission, please contact [EMAIL PROTECTED]
  - *
  - * 5. Products derived from this software may not be called "Apache"
  - *    nor may "Apache" appear in their names without prior written
  - *    permission of the Apache Group.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - *
  - * ====================================================================
  + * Copyright 1999,2004 The Apache Software Foundation.
  + * 
  + * Licensed under the Apache License, Version 2.0 (the "License");
  + * you may not use this file except in compliance with the License.
  + * You may obtain a copy of the License at
  + * 
  + *      http://www.apache.org/licenses/LICENSE-2.0
  + * 
  + * Unless required by applicable law or agreed to in writing, software
  + * distributed under the License is distributed on an "AS IS" BASIS,
  + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  + * See the License for the specific language governing permissions and
  + * limitations under the License.
    */
   
   package org.apache.commons.feedparser.tools;
  @@ -62,7 +22,9 @@
   import java.text.*;
   
   /**
  - *
  + * ISO 8601 date parsing utility.  Designed for parsing the ISO subset used in
  + * Dublin Core, RSS 1.0, and Atom.
  + * 
    * @author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton (burtonator)</a>
    * @version $Id$
    */
  
  
  
  1.2       +68 -54    
jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java
  
  Index: RFC822DateParser.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RFC822DateParser.java     2 Mar 2004 08:27:52 -0000       1.1
  +++ RFC822DateParser.java     2 Mar 2004 08:32:07 -0000       1.2
  @@ -1,57 +1,17 @@
   /*
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowlegement may appear in the software itself,
  - *    if and wherever such third-party acknowlegements normally appear.
  - *
  - * 4. The names "The Jakarta Project", "FeedParser", and "Apache Software
  - *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  - *    permission, please contact [EMAIL PROTECTED]
  - *
  - * 5. Products derived from this software may not be called "Apache"
  - *    nor may "Apache" appear in their names without prior written
  - *    permission of the Apache Group.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - *
  - * ====================================================================
  + * Copyright 1999,2004 The Apache Software Foundation.
  + * 
  + * Licensed under the Apache License, Version 2.0 (the "License");
  + * you may not use this file except in compliance with the License.
  + * You may obtain a copy of the License at
  + * 
  + *      http://www.apache.org/licenses/LICENSE-2.0
  + * 
  + * Unless required by applicable law or agreed to in writing, software
  + * distributed under the License is distributed on an "AS IS" BASIS,
  + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  + * See the License for the specific language governing permissions and
  + * limitations under the License.
    */
   
   package org.apache.commons.feedparser.tools;
  @@ -63,6 +23,60 @@
   
   /**
    *
  + * RFC 822 date parsing utility.  Designed for parsing the ISO subset used in
  + * Dublin Core, RSS 1.0, and Atom.
  + *
  + * 
  + http://asg.web.cmu.edu/rfc/rfc822.html#sec-5
  + * 
  + 5.1 SYNTAX
  + * 
  + * date-time   =  [ day "," ] date time        ; dd mm yy
  + * ;  hh:mm:ss zzz
  + * 
  + * day         =  "Mon"  / "Tue" /  "Wed"  / "Thu"
  + * /  "Fri"  / "Sat" /  "Sun"
  + * 
  + * date        =  1*2DIGIT month 2DIGIT        ; day month year
  + * ;  e.g. 20 Jun 82
  + * 
  + * month       =  "Jan"  /  "Feb" /  "Mar"  /  "Apr"
  + * /  "May"  /  "Jun" /  "Jul"  /  "Aug"
  + * /  "Sep"  /  "Oct" /  "Nov"  /  "Dec"
  + * 
  + * time        =  hour zone                    ; ANSI and Military
  + * 
  + * hour        =  2DIGIT ":" 2DIGIT [":" 2DIGIT]
  + * ; 00:00:00 - 23:59:59
  + * 
  + * zone        =  "UT"  / "GMT"                ; Universal Time
  + * ; North American : UT
  + * /  "EST" / "EDT"                ;  Eastern:  - 5/ - 4
  + * /  "CST" / "CDT"                ;  Central:  - 6/ - 5
  + * /  "MST" / "MDT"                ;  Mountain: - 7/ - 6
  + * /  "PST" / "PDT"                ;  Pacific:  - 8/ - 7
  + * /  1ALPHA                       ; Military: Z = UT;
  + * ;  A:-1; (J not used)
  + * ;  M:-12; N:+1; Y:+12
  + * / ( ("+" / "-") 4DIGIT )        ; Local differential
  + * ;  hours+min. (HHMM)
  + * 
  + 5.2 SEMANTICS
  + * 
  + * If included, day-of-week must be the day implied by the date specification.
  + * 
  + * Time zone may be indicated in several ways. "UT" is Univer- sal Time
  + * (formerly called "Greenwich Mean Time"); "GMT" is per- mitted as a reference
  + * to Universal Time. The military standard uses a single character for each
  + * zone. "Z" is Universal Time. "A" indicates one hour earlier, and "M"
  + * indicates 12 hours ear- lier; "N" is one hour later, and "Y" is 12 hours
  + * later. The letter "J" is not used. The other remaining two forms are taken
  + * from ANSI standard X3.51-1975. One allows explicit indication of the amount
  + * of offset from UT; the other uses common 3-character strings for indicating
  + * time zones in North America.
  + * 
  + * 
  + * 
    * @author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton (burtonator)</a>
    * @version $Id$
    */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to