|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.xdoc.XdocUtils
public class XdocUtils
Utilities designed for use during XSTL processing. These generally provide some kind of processing based on the values of strings which return strings for insertion into a document. They can be used in conjunction with Xalan's XSLT processing by adding the attribute
xmlns:XdocUtils="xalan://uk.ac.starlink.xdoc.XdocUtils"to the xsl:stylesheet element of an XSLT stylesheet. Other processors probably have their own mechanisms.
Method Summary | |
---|---|
static String |
classUsage(String clazzName)
Returns the usage string for a given class. |
static String |
reportFileSize(String loc)
Returns the approximate size of a file in human-readable form given the location of a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String classUsage(String clazzName) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
main(String[])
method of the
named class with the single argument "-help
",
and captures and returns the output.
clazzName
- fully qualified name of class having main() method
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
public static String reportFileSize(String loc)
loc
- file location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |