public class SFXFileReader extends Object
| Constructor and Description |
|---|
SFXFileReader() |
| Modifier and Type | Method and Description |
|---|---|
static String |
doNodes(Node node,
Item item)
Process the item.
|
static String |
getAttribute(Node e,
String name)
Returns the value of the node's attribute named
|
static Node |
getElement(Node node)
Returns element node
|
static String |
getValue(Node node)
Returns the value found in the Text node (if any) in the
node list that's passed in.
|
static boolean |
isEmptyTextNode(Node nd)
Is Empty text Node
|
static String |
loadSFXFile(String fileName,
Item item)
Loads the SFX configuraiton file
|
static Document |
parseFile(String fileName)
Parses XML file and returns XML document.
|
public static String loadSFXFile(String fileName, Item item) throws IOException
fileName - The name of the SFX configuration fileitem - The item to processIOExceptionpublic static Document parseFile(String fileName)
fileName - XML file to parsepublic static String doNodes(Node node, Item item) throws IOException
node - item - IOExceptionpublic static Node getElement(Node node)
node - element (it is XML tag)public static boolean isEmptyTextNode(Node nd)
public static String getAttribute(Node e, String name)
Copyright © 2015 DuraSpace. All Rights Reserved.