java.lang.Object
org.jorigin.lang.xml.LangResourceXMLReader
A XML reader used for handling XML language resource files. This reader delegates processing to
LangResourceContentHandler, LangResourceErrorHandler
and LangResourceXMLFilter- Since:
- 1.0.0
- Version:
- "1.0.14" - b202111241200L
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventListenerListThe attached listeners.protected LangResourceThe underlying lang resource. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new XML language resource reader.Create a new XML language resource reader. -
Method Summary
Modifier and TypeMethodDescriptionGet the language resources read from the XML document where URI is given in parameter.Get thelanguage resourceread by this object.getUri()Get the URI of the the XML document to read.booleanGet if the reader is currently working.voidSet the URI of the the XML document to read.
-
Field Details
-
idListenerList
The attached listeners. -
resource
The underlying lang resource.
-
-
Constructor Details
-
LangResourceXMLReader
public LangResourceXMLReader()Create a new XML language resource reader. -
LangResourceXMLReader
Create a new XML language resource reader.- Parameters:
uri- the uri of the XML document to read.
-
-
Method Details
-
setUri
Set the URI of the the XML document to read.- Parameters:
uri- the URI of the the XML document to read.- See Also:
-
getUri
Get the URI of the the XML document to read.- Returns:
- the URI of the the XML document to read.
- See Also:
-
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
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.
-