Class LangResourceXMLReader

    • Constructor Summary

      Constructors 
      Constructor Description
      LangResourceXMLReader()
      Create a new XML language resource reader.
      LangResourceXMLReader​(java.lang.String uri)
      Create a new XML language resource reader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.HashMap<java.lang.String,​java.lang.String> getParsedLangResource​(java.lang.String uri)
      Get the language resources read from the XML document where URI is given in parameter.
      LangResource getResource()
      Get the language resource read by this object.
      java.lang.String getUri()
      Get the URI of the the XML document to read.
      boolean isWorking()
      Get if the reader is currently working.
      void setUri​(java.lang.String uri)
      Set the URI of the the XML document to read.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • idListenerList

        protected javax.swing.event.EventListenerList idListenerList
    • Constructor Detail

      • LangResourceXMLReader

        public LangResourceXMLReader()
        Create a new XML language resource reader.
      • LangResourceXMLReader

        public LangResourceXMLReader​(java.lang.String uri)
        Create a new XML language resource reader.
        Parameters:
        uri - the uri of the XML document to read.
    • Method Detail

      • setUri

        public void setUri​(java.lang.String uri)
        Set the URI of the the XML document to read.
        Parameters:
        uri - the URI of the the XML document to read.
        See Also:
        getUri()
      • getUri

        public java.lang.String getUri()
        Get the URI of the the XML document to read.
        Returns:
        the URI of the the XML document to read.
        See Also:
        setUri(String)
      • isWorking

        public boolean isWorking()
        Get if the reader is currently working.
        Returns:
        true if the reader is currently working and false otherwise.
      • getParsedLangResource

        public java.util.HashMap<java.lang.String,​java.lang.String> getParsedLangResource​(java.lang.String uri)
                                                                                         throws java.io.IOException
        Get the language resources read from the XML document where URI is given in parameter.
        Parameters:
        uri - the URI of the XML document than contains the language resources.
        Returns:
        the language resources.
        Throws:
        java.io.IOException - if an error occurs.