/*
 * @(#)NntpArticleBodyEvent.java
 *
 * Copyright (c) 2001-2002 JScape
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JScape. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JScape.
 */
package com.jscape.inet.nntp;

import java.util.EventObject;


/**
 * Fired when body of article is retrieved from NNTP server.
 */
public class NntpArticleBodyEvent
        extends EventObject {
    private NntpArticleBody body;

    /**
     * Creates NntpArticleBodyEvent.
     *
     * @param source the source of the event
     * @param body   the <code>NntpArticleBody</code> of the article
     *
     * @see NntpArticleBody
     */
    public NntpArticleBodyEvent(Object source, NntpArticleBody body) {
        super(source);
        this.body = body;
    }

    /**
     * Gets body of article.
     *
     * @return the <code>NntpArticleBody</code> of the article
     *
     * @see NntpArticleBody
     */
    public NntpArticleBody getBody() {
        return body;
    }
}
