com.lightdev.app.filemanager.io
Class ConnectionsReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by com.lightdev.lib.xml.io.XmlReader
              extended by com.lightdev.app.filemanager.io.ConnectionsReader
All Implemented Interfaces:
XmlParserCallback, Closeable, Readable

public class ConnectionsReader
extends XmlReader
implements XmlParserCallback

A class that reads connections from an XML structure previously built by application File Manager

Version:
1, 19.09.2008
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ConnectionsReader(Reader in)
          create an new object of class ConnectionsRedaer
 
Method Summary
 List getConnections()
          get the connections that have been read by this reader
 void handleEndTag(String tagName)
          process an xml end tag
 void handleStartTag(String tagName, AttributeSet a)
          process an xml start tag
 void handleText(String text)
          process text found in an xml tag
 
Methods inherited from class com.lightdev.lib.xml.io.XmlReader
read, read
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionsReader

public ConnectionsReader(Reader in)
create an new object of class ConnectionsRedaer

Parameters:
in - the reader to read connections from
Method Detail

getConnections

public List getConnections()
get the connections that have been read by this reader

Returns:
an ArrayList of Connection objects

handleStartTag

public void handleStartTag(String tagName,
                           AttributeSet a)
process an xml start tag

Specified by:
handleStartTag in interface XmlParserCallback
Parameters:
tagName - the name of the start tag to process
a - the attributes of the start tag to process

handleEndTag

public void handleEndTag(String tagName)
process an xml end tag

Specified by:
handleEndTag in interface XmlParserCallback
Parameters:
tagName - the name of the end tag to process

handleText

public void handleText(String text)
process text found in an xml tag

Specified by:
handleText in interface XmlParserCallback
Parameters:
text - the text to process