Package uk.ac.starlink.datanode.nodes
Class NodeEntityResolver
java.lang.Object
uk.ac.starlink.datanode.nodes.NodeEntityResolver
- All Implemented Interfaces:
EntityResolver
Provides specialised XML entity resolution for data nodes.
As well as the local copies of some useful entities provided by
the superclass
StarEntityResolver
any entity which is retrieved using a URL by this
entity resolver is cached for future use for the case in which,
for instance, multiple files in the same directory reference the
same external entity. Done this way, you don't have to keep making
network connections, you keep a copy of the items you retrieve.
Obviously, there is a down side, you can fill up memory with things
that you're not going to need again. Try it like this for now.-
Method Summary
Modifier and TypeMethodDescriptionstatic NodeEntityResolver
Returns the sole instance of this singleton class.resolveEntity
(String publicId, String systemId)
-
Method Details
-
getInstance
Returns the sole instance of this singleton class. -
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-