Module org.jcommon

Class LangResourceXMLReader

    • Constructor Detail

      • LangResourceXMLReader

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

        public LangResourceXMLReader​(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​(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 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 HashMap<String,​String> getParsedLangResource​(String uri)
                                                           throws 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:
        IOException - if an error occurs.