1 17 package com.sun.syndication.feed.rss; 18 19 import com.sun.syndication.feed.impl.ObjectBean; 20 21 import java.io.Serializable ; 22 23 29 public class Enclosure implements Cloneable ,Serializable { 30 private ObjectBean _objBean; 31 private String _url; 32 private long _length; 33 private String _type; 34 35 40 public Enclosure() { 41 _objBean = new ObjectBean(this.getClass(),this); 42 } 43 44 51 public Object clone() throws CloneNotSupportedException { 52 return _objBean.clone(); 53 } 54 55 62 public boolean equals(Object other) { 63 return _objBean.equals(other); 64 } 65 66 74 public int hashCode() { 75 return _objBean.hashCode(); 76 } 77 78 84 public String toString() { 85 return _objBean.toString(); 86 } 87 88 94 public String getUrl() { 95 return _url; 96 } 97 98 104 public void setUrl(String url) { 105 _url = url; 106 } 107 108 114 public long getLength() { 115 return _length; 116 } 117 118 124 public void setLength(long length) { 125 _length = length; 126 } 127 128 134 public String getType() { 135 return _type; 136 } 137 138 144 public void setType(String type) { 145 _type = type; 146 } 147 148 } 149 | Popular Tags |