org.exist.source
Class SourceFactory

java.lang.Object
  extended by org.exist.source.SourceFactory

public class SourceFactory
extends Object

Factory to create a Source object for a given URL.

Author:
wolf

Constructor Summary
SourceFactory()
           
 
Method Summary
static Source getSource(DBBroker broker, String contextPath, String location, boolean checkXQEncoding)
          Create a Source object for the given URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFactory

public SourceFactory()
Method Detail

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 resource
contextPath -
location -
Throws:
MalformedURLException
IOException
PermissionDeniedException


Copyright (C) Wolfgang Meier. All rights reserved.