Package org.beangle.ems.avatar.model
Class FileAvatar
- java.lang.Object
-
- org.beangle.ems.avatar.model.AbstractAvatar
-
- org.beangle.ems.avatar.model.FileAvatar
-
- All Implemented Interfaces:
Avatar
public class FileAvatar extends AbstractAvatar
-
-
Constructor Summary
Constructors Constructor Description FileAvatar()FileAvatar(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetFile()InputStreamgetInputStream()longgetSize()StringgetType()voidsetFile(File file)-
Methods inherited from class org.beangle.ems.avatar.model.AbstractAvatar
getKBSize, getName, getUpdatedAt, setName, setType, setUpdatedAt
-
-
-
-
Constructor Detail
-
FileAvatar
public FileAvatar(File file)
-
FileAvatar
public FileAvatar()
-
-
Method Detail
-
getSize
public long getSize()
-
getType
public String getType()
- Specified by:
getTypein interfaceAvatar- Overrides:
getTypein classAbstractAvatar
-
getInputStream
public InputStream getInputStream() throws AvatarException
- Throws:
AvatarException
-
getFile
public File getFile()
-
setFile
public void setFile(File file)
-
-