|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsamples.stax.StAXParsingSample
public class StAXParsingSample
This is a sample that demonstrates the use of FI StAX Cursor API.
The sample starts by creating an input stream from the input FI document. The input stream is then used to instantiating a new instance of FI StAX stream reader "StAXDocumentParser". The rest of the code simply uses the StreamReader to loop through the document and displays event types, names and etc.
| Constructor Summary | |
|---|---|
StAXParsingSample()
Creates a new instance of Cursor |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Starts the sample. |
void |
parse(String filename)
Reads a FI document using StAXDocumentParser and displays event types and contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StAXParsingSample()
| Method Detail |
|---|
public static void main(String[] args)
args - a FI document.public void parse(String filename)
filename - FI document name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||