public class WaffleInfo extends Object
This utility class collects system information and returns it as an XML document.From the command line, you can write the info to stdout using:
java -cp "jna.jar;waffle-core.jar;waffle-api.jar;jna-platform.jar;guava-17.0.jar" waffle.util.WaffleInfo
To show this information in a browser, run:
java -cp "..." waffle.util.WaffleInfo -show
To lookup account names and return any listed info, run:
java -cp "..." waffle.util.WaffleInfo -lookup AccountName
| Constructor and Description |
|---|
WaffleInfo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAccountInfo(Document doc,
Element node,
IWindowsAccount account) |
protected Element |
getAuthProviderInfo(Document doc) |
static Element |
getException(Document doc,
Exception t) |
Element |
getLookupInfo(Document doc,
String lookup) |
Document |
getWaffleInfo()
Get a Document with basic system information
This uses the builtin javax.xml package even though the API is quite verbose
|
static void |
main(String[] args)
Print system information.
|
static String |
toPrettyXML(Document doc) |
public Document getWaffleInfo() throws ParserConfigurationException
ParserConfigurationException - when getting new document builder.protected void addAccountInfo(Document doc, Element node, IWindowsAccount account)
public static String toPrettyXML(Document doc) throws TransformerException
TransformerExceptionpublic static void main(String[] args)
args - variable arguments to pass to main. Valid values are "-show" and "-lookup".Copyright © 2010-2014 com.github.dblock. All Rights Reserved.