org.exist.source
Class SourceFactory
java.lang.Object
org.exist.source.SourceFactory
public class SourceFactory
- extends Object
Factory to create a Source
object for a given
URL.
- Author:
- wolf
SourceFactory
public SourceFactory()
getSource
public static final Source getSource(DBBroker broker,
String contextPath,
String location,
boolean checkXQEncoding)
throws MalformedURLException,
IOException,
PermissionDeniedException
- Create a
Source
object for the given URL.
As a special case, if the URL starts with "resource:", the resource
will be read from the current context class loader.
- Parameters:
broker
- broker, can be null if not asking for a database resourcecontextPath
- location
-
- Throws:
MalformedURLException
IOException
PermissionDeniedException
Copyright (C) Wolfgang Meier. All rights reserved.