Revision [1714]
This is an old revision of FunctionStAXcloseWriter made by DavidLee on 2011-05-31 12:33:25.
Command closeWriter
This command is part of the StAX support.
Name
closeReader Closes a StAX Writer created with newEventWriterSynopsis
closeReader $readerDescription
closeWritercloses the writercreated with newEventWriter. If you do not close the writerwhen 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