/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/*
*/
/*
* $Id: DOMURIDereferencer.java,v 1.2 2008/07/24 15:20:32 mullan Exp $
*/
/**
* DOM-based implementation of URIDereferencer.
*
* @author Sean Mullan
*/
private DOMURIDereferencer() {
// need to call com.sun.org.apache.xml.internal.security.Init.init()
// before calling any apache security code
}
throws URIReferenceException {
throw new NullPointerException("uriRef cannot be null");
}
throw new NullPointerException("context cannot be null");
}
// Check if same-document URI and already registered on the context
}
if (secVal) {
id)) {
id + " were detected";
throw new URIReferenceException(error);
}
}
result.setExcludeComments(true);
}
} else {
}
return new ApacheNodeSetData(result);
}
}
try {
if (in.isOctetStream()) {
return new ApacheOctetStreamData(in);
} else {
return new ApacheNodeSetData(in);
}
} catch (Exception e) {
throw new URIReferenceException(e);
}
}
}