com.fatwire.cs.ui.model.bo.asset
Class FileData
java.lang.Object
com.fatwire.cs.ui.model.bo.asset.FileData
- All Implemented Interfaces:
- java.io.Serializable
public class FileData
- extends java.lang.Object
- implements java.io.Serializable
Created by IntelliJ IDEA.
User: jpinto
Date: Feb 21, 2007
Time: 2:13:47 PM
To change this template use File | Settings | File Templates.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileData
public FileData(AttributeEditor editor,
AttributeTypeEnum attributeDefType)
getStream
public java.io.InputStream getStream()
setStream
public void setStream(java.io.InputStream stream)
getFileName
public java.lang.String getFileName()
setFileName
public void setFileName(java.lang.String fileName)
getFolder
public java.lang.String getFolder()
setFolder
public void setFolder(java.lang.String folder)
getBytesAsString
public java.lang.String getBytesAsString()
throws UIException
- Throws:
UIException
setBytes
public void setBytes(byte[] bytes)
getBytes
public byte[] getBytes()
getUploadedFile
public UploadedFile getUploadedFile()
setUploadedFile
public void setUploadedFile(UploadedFile uploadedFile)
delete
public boolean delete()
setDelete
public void setDelete(boolean delete)
getStorage
public FileData.Storage getStorage()
isEmpty
public boolean isEmpty()
getContentType
public java.lang.String getContentType()
throws UIException
- Throws:
UIException
getDefaultContentType
public java.lang.String getDefaultContentType()
setData
public void setData(java.lang.String sText)
throws UIException
- Update file data with this text value.
- Throws:
UIException
setData
public void setData(java.lang.String fileName,
byte[] bytes)
throws UIException
- Throws:
UIException
getLinkText
public java.lang.String getLinkText()
setLinkText
public void setLinkText(java.lang.String text)