|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.domain.Attachment
public class Attachment
Represents a blog entry attachment (such as that used within an RSS enclosure).
| Constructor Summary | |
|---|---|
Attachment()
Default, no args constructor. |
|
Attachment(java.lang.String url,
long size,
java.lang.String type)
Creates an instance with the specified properties. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object o)
|
long |
getSize()
Gets the size in bytes. |
java.lang.String |
getType()
Gets the content type. |
java.lang.String |
getUrl()
Gets the URL. |
int |
hashCode()
|
void |
setSize(long size)
Sets the size of the attachement in bytes. |
void |
setType(java.lang.String type)
Sets the content type. |
void |
setUrl(java.lang.String url)
Sets the URL. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attachment()
public Attachment(java.lang.String url,
long size,
java.lang.String type)
url - a URL as a Stringsize - the size in bytestype - a content type as a String| Method Detail |
|---|
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - a URL as a Stringpublic long getSize()
public void setSize(long size)
size - the size in bytespublic java.lang.String getType()
public void setType(java.lang.String type)
type - a content type as a Stringpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.ObjectCloneable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||