|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.progress.JobProgressUtils
public final class JobProgressUtils
Utility methods for facilitating common job progress operations.
Method Summary | |
---|---|
static Properties |
getMetaDataProperties(JobProgress progress)
Gets meta data as a Properties instance. |
static void |
setMetaDataProperties(JobProgress progress,
Properties props)
Sets meta data as a string from a Properties instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Properties getMetaDataProperties(JobProgress progress)
Properties
instance. This is a
convenience method for treating the meta data string as properties.
It calls JobProgress.getMetadata()
and parses it assuming it
follows Properties
syntax.
public static void setMetaDataProperties(JobProgress progress, Properties props)
Properties
instance.
This is a convenience method for treating the meta data string as
properties.
It calls JobProgress.setMetadata(String)
after converting the
properties to a string as per Properties
syntax.
progress
- job progress on which to store meta dataprops
- properties to store in job progress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |