|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.objectlab.qalab.m2.util.Utils
public final class Utils
Some handy utils for the QALab maven 2 plugin.
Method Summary | |
---|---|
static void |
checkFile(java.io.File aFile,
java.lang.String aParamName)
performs a simple check that the file is real and readable. |
static java.io.InputStream |
extractAsInputStream(java.lang.String aResourcePath)
extract an input stream from the supplied resource file. |
static java.lang.String |
formatDateBasedOnOffset(java.lang.String anOffset)
Generate a yyyy-MM-dd date based on now less the number of hours to offset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void checkFile(java.io.File aFile, java.lang.String aParamName) throws java.io.IOException
aFile
- the file to checkaParamName
- the name of the input param - used for error reporting.
java.io.IOException
- if the file was null or not readable.public static java.io.InputStream extractAsInputStream(java.lang.String aResourcePath) throws java.io.IOException
aResourcePath
- the path to the resource we need the
actual system path for. Must not be empty or null.
java.io.IOException
- if the resource path was not readable.public static java.lang.String formatDateBasedOnOffset(java.lang.String anOffset)
anOffset
- the number of hours to subtract from now.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |