Package org.jorigin.lang.xml
Class LangResourceXMLReader
- java.lang.Object
-
- org.jorigin.lang.xml.LangResourceXMLReader
-
public class LangResourceXMLReader extends java.lang.ObjectA XML reader used for handling XML language resource files. This reader delegates processing toLangResourceContentHandler,LangResourceErrorHandlerandLangResourceXMLFilter- Since:
- 1.0.0
- Version:
- "1.0.8" - b201801141330L
- Author:
- Julien Seinturier - COMEX S.A. - contact@jorigin.org - https://github.com/jorigin/jeometry
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.event.EventListenerListidListenerListprotected LangResourceresource
-
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.LangResourcegetResource()Get thelanguage resourceread by this object.java.lang.StringgetUri()Get the URI of the the XML document to read.booleanisWorking()Get if the reader is currently working.voidsetUri(java.lang.String uri)Set the URI of the the XML document to read.
-
-
-
Field Detail
-
idListenerList
protected javax.swing.event.EventListenerList idListenerList
-
resource
protected LangResource resource
-
-
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)
-
getResource
public LangResource getResource()
Get thelanguage resourceread by this object.- Returns:
- the
language resourceread by this object.
-
isWorking
public boolean isWorking()
Get if the reader is currently working.- Returns:
trueif the reader is currently working andfalseotherwise.
-
getParsedLangResource
public java.util.HashMap<java.lang.String,java.lang.String> getParsedLangResource(java.lang.String uri) throws java.io.IOExceptionGet 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.
-
-