org.jasig.portlet.cms.model
Class Attachment
java.lang.Object
org.jcrom.JcrFile
org.jasig.portlet.cms.model.Attachment
- All Implemented Interfaces:
- Serializable
public class Attachment
- extends org.jcrom.JcrFile
- See Also:
- Serialized Form
| Fields inherited from class org.jcrom.JcrFile |
dataProvider, mimeType, name, path |
| Methods inherited from class org.jcrom.JcrFile |
fromFile, getDataProvider, getPath, setDataProvider, setName, setPath |
Attachment
public Attachment()
fromFile
public static Attachment fromFile(String fileName,
String contentType,
Date lastModified,
Locale lc,
byte[] contents)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getContents
public byte[] getContents()
getEncoding
public String getEncoding()
- Overrides:
getEncoding in class org.jcrom.JcrFile
getFileName
public String getFileName()
getLastModified
public Calendar getLastModified()
- Overrides:
getLastModified in class org.jcrom.JcrFile
getMimeType
public String getMimeType()
- Overrides:
getMimeType in class org.jcrom.JcrFile
getName
public String getName()
- Overrides:
getName in class org.jcrom.JcrFile
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
setContents
public void setContents(byte[] contents)
setEncoding
public void setEncoding(String encoding)
- Overrides:
setEncoding in class org.jcrom.JcrFile
setFileName
public void setFileName(String fileName)
setLastModified
public void setLastModified(Calendar lastModified)
- Overrides:
setLastModified in class org.jcrom.JcrFile
setMimeType
public void setMimeType(String mimeType)
- Overrides:
setMimeType in class org.jcrom.JcrFile
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011 uPortal Jasig Community. All Rights Reserved.