it.sauronsoftware.feed4j.bean
Class FeedEnclosure

java.lang.Object
  extended by it.sauronsoftware.feed4j.bean.RawElement
      extended by it.sauronsoftware.feed4j.bean.FeedEnclosure
All Implemented Interfaces:
RawNode

public class FeedEnclosure
extends RawElement

This class is used to represent a feed enclosure.

Author:
Carlo Pelliccia

Constructor Summary
FeedEnclosure()
           
 
Method Summary
 long getLength()
          This method returns the enclosure size in bytes, or -1 if the information is not available.
 java.lang.String getMimeType()
          This method returns the enclosure MIME type.
 java.lang.String getTitle()
          This method returns the enclosure title, or null if the information is not available.
 java.net.URL getURL()
          This method returns the URL for the enclosure retrieval.
 void setLength(long length)
          This method sets the enclosure size in bytes.
 void setMimeType(java.lang.String mimeType)
          This method sets the enclosure MIME type.
 void setTitle(java.lang.String title)
          This method sets the enclosure title.
 void setURL(java.net.URL url)
          This method sets the URL for the enclosure retrieval.
 
Methods inherited from class it.sauronsoftware.feed4j.bean.RawElement
addAttribute, addNode, getAttribute, getAttributeCount, getAttributeValue, getElement, getElements, getElementValue, getName, getNamespaceURI, getNode, getNodeCount, getValue, removeNode, setName, setNamespaceURI, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedEnclosure

public FeedEnclosure()
Method Detail

getLength

public long getLength()
This method returns the enclosure size in bytes, or -1 if the information is not available.

Returns:
The enclosure size in bytes, or -1 if the information is not available.

setLength

public void setLength(long length)
This method sets the enclosure size in bytes.

Parameters:
length - The enclosure size in bytes.

getMimeType

public java.lang.String getMimeType()
This method returns the enclosure MIME type.

Returns:
The enclosure MIME type.

setMimeType

public void setMimeType(java.lang.String mimeType)
This method sets the enclosure MIME type.

Parameters:
mimeType - The enclosure MIME type.

getURL

public java.net.URL getURL()
This method returns the URL for the enclosure retrieval.

Returns:
The URL for the enclosure retrieval.

setURL

public void setURL(java.net.URL url)
This method sets the URL for the enclosure retrieval.

Parameters:
url - The URL for the enclosure retrieval.

getTitle

public java.lang.String getTitle()
This method returns the enclosure title, or null if the information is not available.

Returns:
The enclosure title, or null if the information is not available.

setTitle

public void setTitle(java.lang.String title)
This method sets the enclosure title.

Parameters:
title - The enclosure title