|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.data.decoder.BasicXMLDecoder
public abstract class BasicXMLDecoder
Title:
Description:
Copyright: Copyright (c) 2003
Company:
This is a generic class for reading xml files using the DOM, which is most appropriate for this kind of Decoder.
| Constructor Summary | |
|---|---|
BasicXMLDecoder()
|
|
| Method Summary | |
|---|---|
Data |
decode(String directory,
URL[] urls,
FileGroup source)
|
static Document |
decode(URL url)
This is a helper function to decode a Document from a url using the basic factory and a nonvalidating parser. |
int |
getNumberOfFiles()
|
protected String |
getSubText(Node element)
Often you may want to get the trimmed text from a node that should only have one subnode, which is a text node. |
abstract Data |
interpret(Document document,
String directory,
FileGroup source)
This is where you should interpret the document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.washington.biostr.sig.brainj3d.data.Decoder |
|---|
getResultType |
| Constructor Detail |
|---|
public BasicXMLDecoder()
| Method Detail |
|---|
public Data decode(String directory,
URL[] urls,
FileGroup source)
throws BadDataFile,
FileNotFoundException,
IOException
decode in interface DecoderBadDataFile
FileNotFoundException
IOException
public abstract Data interpret(Document document,
String directory,
FileGroup source)
public int getNumberOfFiles()
getNumberOfFiles in interface Decoder
public static Document decode(URL url)
throws IOException
url -
IOExceptionprotected String getSubText(Node element)
element -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||