/*
* 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: DOMExcC14NMethod.java,v 1.2 2008/07/24 15:20:32 mullan Exp $
*/
/**
* DOM-based implementation of CanonicalizationMethod for Exclusive
* Canonical XML algorithm (with or without comments).
* Uses Apache XML-Sec Canonicalizer.
*
* @author Sean Mullan
*/
throws InvalidAlgorithmParameterException {
if (!(params instanceof ExcC14NParameterSpec)) {
throw new InvalidAlgorithmParameterException
("params must be of type ExcC14NParameterSpec");
}
}
}
throws InvalidAlgorithmParameterException {
if (paramsElem == null) {
this.inclusiveNamespaces = null;
return;
}
}
this.inclusiveNamespaces = prefixListAttr;
int begin = 0;
while (end != -1) {
}
}
}
throws MarshalException {
return;
}
(ownerDoc, "InclusiveNamespaces",
} else {
}
if (i < size - 1) {
}
}
}
return CanonicalizationMethod.EXCLUSIVE;
}
throws TransformException {
// ignore comments if dereferencing same-document URI that require
// you to omit comments, even if the Transform says otherwise -
// this is to be compliant with section 4.3.3.3 of W3C Rec.
if (data instanceof DOMSubTreeData) {
if (subTree.excludeComments()) {
try {
} catch (InvalidCanonicalizerException ice) {
throw new TransformException
("Couldn't find Canonicalizer for: " +
}
}
}
}
}