|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsamples.stax.StAXEventReadingSample
public class StAXEventReadingSample
This is a sample that demonstrates the use of FI StAX Event Iterator API.
The sample starts by creating an input stream from the input FI document. The input stream is used to instantiate a stream reader as does in the StreamReader sample. An event reader (StAXEventReader) is created using the stream reader isntance. With the event reader, the program iterates through all of the events in the input FI document and displays event types and content.
| Constructor Summary | |
|---|---|
StAXEventReadingSample()
Creates a new instance of EventReader |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Starts the sample. |
void |
readFIDoc(String filename)
Reads a FI document using fastinfoset.StAXEventReader and displays all of the events in the document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StAXEventReadingSample()
| Method Detail |
|---|
public static void main(String[] args)
args - a FI document.
public void readFIDoc(String filename)
throws Exception
filename - FI document name.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||