/[classpath]/inetlib/source/gnu/inet/nntp/Overview.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/nntp/Overview.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.6 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * Overview.java
3   * Copyright (C) 2002 The Free Software Foundation   * Copyright (C) 2002 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 45  import java.util.ArrayList; Line 45  import java.util.ArrayList;
45   * An overview entry.   * An overview entry.
46   *   *
47   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
  * @version $Revision$ $Date$  
48   */   */
49  public final class Overview  public final class Overview
50  {  {
# Line 53  public final class Overview Line 52  public final class Overview
52    int articleNumber;    int articleNumber;
53    private List headers;    private List headers;
54    
55    Overview (int articleNumber)    Overview(int articleNumber)
56    {    {
57      this.articleNumber = articleNumber;      this.articleNumber = articleNumber;
58      headers = new ArrayList(8);      headers = new ArrayList(8);
59    }    }
60    
61    void add (String header)    void add(String header)
62    {    {
63      headers.add (header);      headers.add(header);
64    }    }
65    
66    /**    /**
67     * Returns the article number this overview entry is associated with.     * Returns the article number this overview entry is associated with.
68     */     */
69    public int getArticleNumber ()    public int getArticleNumber()
70    {    {
71      return articleNumber;      return articleNumber;
72    }    }
# Line 75  public final class Overview Line 74  public final class Overview
74    /**    /**
75     * Returns the header at the specified index.     * Returns the header at the specified index.
76     */     */
77    public String getHeader (int index)    public String getHeader(int index)
78    {    {
79      return (String) headers.get (index);      return (String) headers.get(index);
80    }    }
81    
82  }  }
83    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26