net.sourceforge.rssowl.model
Class Enclosure

java.lang.Object
  extended by net.sourceforge.rssowl.model.Enclosure

public class Enclosure
extends java.lang.Object

Model for a Enclosure. A newsitem may contain one ore more enclosures (e.g. link to a mp3 or other file)

Version:
1.2.4
Author:
Benjamin Pasero

Field Summary
private  java.lang.String length
           
private  java.lang.String type
           
private  java.lang.String url
           
 
Constructor Summary
Enclosure()
          Default Constructor.
 
Method Summary
 java.lang.String getLength(boolean formatted)
          Get the length of the enclosure
 java.lang.String getType()
          Get the type of the enclosure
 java.lang.String getUrl()
          Get the URL of the enclosure
 void setLength(java.lang.String length)
          Set the feedSize for the enclosure
 void setType(java.lang.String type)
          Set the type of the enclosure
 void setUrl(java.lang.String url)
          Set the enclosure of the enclosure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

private java.lang.String length

type

private java.lang.String type

url

private java.lang.String url
Constructor Detail

Enclosure

public Enclosure()
Default Constructor. Init with "?"

Method Detail

getLength

public java.lang.String getLength(boolean formatted)
Get the length of the enclosure

Parameters:
formatted - If TRUE return length formatted
Returns:
String

getType

public java.lang.String getType()
Get the type of the enclosure

Returns:
String

getUrl

public java.lang.String getUrl()
Get the URL of the enclosure

Returns:
String

setLength

public void setLength(java.lang.String length)
Set the feedSize for the enclosure

Parameters:
length -

setType

public void setType(java.lang.String type)
Set the type of the enclosure

Parameters:
type -

setUrl

public void setUrl(java.lang.String url)
Set the enclosure of the enclosure

Parameters:
url -


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo