public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static org.exoplatform.social.core.model.AvatarAttachment |
getAvatarAttachment(String fileName)
Gets the avatar attachment.
|
static int |
getDayAsInt(String day)
Gets the day as int.
|
static InputStream |
getFile(String fileName,
String fileType)
Gets the file.
|
static int |
getHourAsInt(String hourString)
Gets the hour as int.
|
static int |
getMinuteAsInt(String hourString)
Gets the minute as int.
|
static String |
getWikiPage(String fileName)
Gets the wiki page.
|
public static org.exoplatform.social.core.model.AvatarAttachment getAvatarAttachment(String fileName) throws Exception
fileName - the file nameException - the exceptionpublic static int getDayAsInt(String day)
day - the daypublic static int getHourAsInt(String hourString)
hourString - the hour stringpublic static int getMinuteAsInt(String hourString)
hourString - the hour stringpublic static String getWikiPage(String fileName) throws IOException
fileName - the file nameIOException - Signals that an I/O exception has occurred.public static InputStream getFile(String fileName, String fileType) throws IOException
fileName - the file namefileType - the file typeIOException - Signals that an I/O exception has occurred.Copyright © 2003–2018 eXo Platform SAS. All rights reserved.