|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.moremotion.util.FileUtils
public class FileUtils
This class provides static utility methods to access MoreMotion specific files.
| Constructor Summary | |
|---|---|
FileUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getCurrentPageVariant(MoreMotionRequest request)
Returns current page variant. |
static java.io.File |
getPageConfigFile(MoreMotionRequest request,
java.lang.String page,
java.lang.String variant)
|
static java.io.File |
getPageFile(MoreMotionRequest request,
java.lang.String page,
java.lang.String variant)
Returns the file associated with the given page name. |
static void |
setCurrentPageVariant(MoreMotionRequest request,
java.lang.String variant)
Sets current page variant |
static java.lang.String[] |
splitByExtension(java.lang.String filename)
Splits a file name into two parts extension and the part before the extension. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public static java.io.File getPageFile(MoreMotionRequest request,
java.lang.String page,
java.lang.String variant)
false is returned.
request - The MoreMotionRequest objectpage - The page namevariant - The page variant.
public static java.io.File getPageConfigFile(MoreMotionRequest request,
java.lang.String page,
java.lang.String variant)
public static java.lang.String[] splitByExtension(java.lang.String filename)
filename - File name.
public static java.lang.String getCurrentPageVariant(MoreMotionRequest request)
public static void setCurrentPageVariant(MoreMotionRequest request,
java.lang.String variant)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||