Revision [1616]

This is an old revision of FunctionStAXcloseReader made by DavidLee on 2010-12-06 06:37:47.

 

Command closeReader


This command is part of the STaX support.

Name

closeReader Closes a StAX Reader created with newEventReader


Synopsis

closeReader( $reader )


Description

closeReader closes the reader created with newEventReader. If you do not close the reader when you are through it may cause open file handles to stay open until the shell exits the current scope and garbage collection occurs.

Note that unlike the rest of the StAX functions this is a command not a function. You use the Command syntax to invoke it.


Example
import commands stax=stax
reader=stax:newEventReader( file.xml )
while [ stax:hasNext( $reader ) ] ; do
	event=stax:nextEvent( $reader ) ;
done

stax:closeReader $reader 




Commands
StAX Functions
newEventReader

Java Objects
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki