public class NodeEntityResolver extends Object implements EntityResolver
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.Modifier and Type | Method and Description |
---|---|
static NodeEntityResolver |
getInstance()
Returns the sole instance of this singleton class.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
public static NodeEntityResolver getInstance()
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.