[FOray-commit] SF.net SVN: foray: [7684] trunk/foray/foray-common/src/java/org/foray/common
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-06-17 21:11:32
|
Revision: 7684 Author: victormote Date: 2006-06-17 14:11:11 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7684&view=rev Log Message: ----------- Whitespace changes only. Modified Paths: -------------- trunk/foray/foray-common/src/java/org/foray/common/ClassService.java trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java trunk/foray/foray-common/src/java/org/foray/common/ColorSpaceCMYK.java trunk/foray/foray-common/src/java/org/foray/common/Configuration.java trunk/foray/foray-common/src/java/org/foray/common/Environment.java trunk/foray/foray-common/src/java/org/foray/common/IOUtil.java trunk/foray/foray-common/src/java/org/foray/common/Logging.java trunk/foray/foray-common/src/java/org/foray/common/MUserAgent.java trunk/foray/foray-common/src/java/org/foray/common/OrderedTreeNode.java trunk/foray/foray-common/src/java/org/foray/common/RandomInput.java trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java trunk/foray/foray-common/src/java/org/foray/common/RandomReaderArray.java trunk/foray/foray-common/src/java/org/foray/common/RandomReaderRAFile.java trunk/foray/foray-common/src/java/org/foray/common/RandomReaderURL.java trunk/foray/foray-common/src/java/org/foray/common/SVGUserAgent.java trunk/foray/foray-common/src/java/org/foray/common/StringUtil.java trunk/foray/foray-common/src/java/org/foray/common/StringUtilPre5.java trunk/foray/foray-common/src/java/org/foray/common/URLBuilder.java trunk/foray/foray-common/src/java/org/foray/common/XMLCharacter.java trunk/foray/foray-common/src/java/org/foray/common/XMLParser.java trunk/foray/foray-common/src/java/org/foray/common/XMLUtil.java Modified: trunk/foray/foray-common/src/java/org/foray/common/ClassService.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/ClassService.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/ClassService.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/ClasspathHandler.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-common/src/java/org/foray/common/ColorSpaceCMYK.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/ColorSpaceCMYK.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/ColorSpaceCMYK.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-common/src/java/org/foray/common/Configuration.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/Configuration.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/Configuration.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import org.apache.commons.logging.Log; @@ -41,7 +41,7 @@ * All options are stored in key / value pairs. * Protected Convenience methods are available to handle Boolean, Int, String, * and List values. - * + * * <p>Most accessor methods are protected. The purpose is to force clients * to use the subclass accessor methods instead, where more intelligence can * be applied with regard to handling null values, etc. Applications that wish Modified: trunk/foray/foray-common/src/java/org/foray/common/Environment.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/Environment.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/Environment.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.awt.GraphicsEnvironment; Modified: trunk/foray/foray-common/src/java/org/foray/common/IOUtil.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/IOUtil.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/IOUtil.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.ByteArrayOutputStream; Modified: trunk/foray/foray-common/src/java/org/foray/common/Logging.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/Logging.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/Logging.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-common/src/java/org/foray/common/MUserAgent.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/MUserAgent.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/MUserAgent.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-common/src/java/org/foray/common/OrderedTreeNode.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/OrderedTreeNode.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/OrderedTreeNode.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -34,7 +34,7 @@ /** * An implementation of the TreeNode interface that provides methods for various * traversal needs. - * + * * <p>Consideration was given to using * {@link DefaultMutableTreeNode} instead of creating this class. * However, the data portion of that class was not deemed suitable.</p> Modified: trunk/foray/foray-common/src/java/org/foray/common/RandomInput.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/RandomInput.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/RandomInput.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.DataInput; @@ -35,7 +35,7 @@ * RandomAccessFile. This interface will generally be useful for classes * providing random input access to a file or file-like structure, i.e. file * readers or parsers. - * + * * @see java.io.DataInput * @see java.io.RandomAccessFile */ Modified: trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.EOFException; @@ -31,7 +31,7 @@ import java.net.URL; /** - * Class managing random-access input. + * Class managing random-access input. * This class both wraps a RandomInput implementation and implements RandomInput * itself. This is so that the wrapping will be totally transparent. The main * reason for wrapping another instance is so that different readers can be @@ -369,7 +369,7 @@ * amount of memory is read and searched. * Please note that searchBytes is looking for bytes that match, not * characters that match. - * @param bytesToFind The byte array containing the content to be matched. + * @param bytesToFind The byte array containing the content to be matched. * @param startRange The offset in the file for the start of the range that * should be searched. To have the range start at the beginning of the file, * set this value to zero. startRange should always be less than endRange, @@ -432,7 +432,7 @@ /** * Returns the first URL in an array that is suitable for use as a - * parameter to the RandomReader constructor. + * parameter to the RandomReader constructor. * @param urlArray An array containing a list of URLs to be tested. * @return The first qualifying URL, or null if there are none. */ @@ -459,7 +459,7 @@ * viewbox over the contents of the file to see it. (We slide the * box in big chunks to minimize the cost of i/o operations. If performance * were not an issue, we could just read the file one byte at a time). - * + * * If we are reading the file forward, we will be sliding the right end of * the viewbox over the left end of the file. If we are reading the file * backward, we will be sliding the left end of the viewbox over the right @@ -571,7 +571,7 @@ // Read the first two chunks to get the pump primed readNextChunk(); readNextChunk(); - + while (offsetToContent < 0 && ! endOfFile) { searchForMatch(); if (endOfFile) { @@ -619,7 +619,7 @@ viewboxTarget = computeViewboxTarget(); /* * Shift the contents of the viewbox as needed to make room for the - * read. Only move it by the actual number of bytes to be read. + * read. Only move it by the actual number of bytes to be read. */ if (readBackward) { // Shift the array elements to the right by actualReadSize @@ -678,7 +678,7 @@ } } if (value < startRange) { - value = startRange; + value = startRange; } return value; } @@ -699,7 +699,7 @@ } } if (value > endRange) { - readEnd = endRange; + readEnd = endRange; } return value; } @@ -721,7 +721,7 @@ if (startRange >= endRange) { return false; } - return true; + return true; } } Modified: trunk/foray/foray-common/src/java/org/foray/common/RandomReaderArray.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/RandomReaderArray.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/RandomReaderArray.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.ByteArrayInputStream; Modified: trunk/foray/foray-common/src/java/org/foray/common/RandomReaderRAFile.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/RandomReaderRAFile.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/RandomReaderRAFile.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.File; @@ -139,7 +139,7 @@ * {@inheritDoc} */ public void reset() { - /* For now, do nothing here. It is possible that nullifying the + /* For now, do nothing here. It is possible that nullifying the * RandomAccessFile instance variable would release some resources, but * probably not enough to make it worth the cost of restarting later. */ Modified: trunk/foray/foray-common/src/java/org/foray/common/RandomReaderURL.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/RandomReaderURL.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/RandomReaderURL.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.IOException; Modified: trunk/foray/foray-common/src/java/org/foray/common/SVGUserAgent.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/SVGUserAgent.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/SVGUserAgent.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import org.apache.batik.bridge.UserAgentAdapter; Modified: trunk/foray/foray-common/src/java/org/foray/common/StringUtil.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/StringUtil.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/StringUtil.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; /** Modified: trunk/foray/foray-common/src/java/org/foray/common/StringUtilPre5.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/StringUtilPre5.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/StringUtilPre5.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id: StringUtil.java 6807 2006-02-24 22:48:53Z victormote $ */ - + package org.foray.common; import com.ibm.icu.lang.UCharacter; Modified: trunk/foray/foray-common/src/java/org/foray/common/URLBuilder.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/URLBuilder.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/URLBuilder.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.common; import java.io.File; @@ -54,7 +54,7 @@ public static URL buildURL(String spec) throws MalformedURLException { if (spec == null) { throw new NullPointerException("spec must not be null"); - } + } File f = new File(spec); if (f.exists()) { return f.toURL(); @@ -83,7 +83,7 @@ } catch (MalformedURLException mfue) { if (baseURL == null) { throw mfue; - } + } URL u2 = new URL(baseURL, spec); return u2; } @@ -97,7 +97,7 @@ * frequently the case that resources identified by URL must be tried * several times as various possibilities are attempted. To standardize * this, three possibilities were considered:</p> - * + * * <ol> * <li>Loop through the possibilities here, attempting to open each * one. When one is successfully opened, return the URL.</li> @@ -106,13 +106,13 @@ * <li>Build and return a collection of possibilities & let the client * manage the process.</li> * </ol> - * + * * <p>Of these three, 1 forces the URL to be opened twice, which was deemed * wasteful. 2 seems like way too much trouble for such a simple task. * An object would have to be created to manage the state information. * 3, while somewhat wasteful, seems much less wasteful than the other two, * and is the plan that was adopted.</p> - * + * * @param baseURLs Array of URLs containing possible paths that should be * tried used as the base for relative URLs. * @param urlSpecified String containing the name of the URL. @@ -155,13 +155,13 @@ /* * The following piece of code is based on the following statement in * RFC2396 section 5.2: - * + * * 3) If the scheme component is defined, indicating that the * reference starts with a scheme name, then the reference is * interpreted as an absolute URI and we are done. Otherwise, * the reference URI's scheme is inherited from the base URI's * scheme component. - * + * * Due to a loophole in prior specifications [RFC1630], some * parsers allow the scheme name to be present in a relative * URI if it is the same as the base URI scheme. Unfortunately, @@ -170,7 +170,7 @@ * implementation may work around such references by removing * the scheme if it matches that of the base URI and the scheme * is known to always use the <hier_part> syntax. - * + * * The URL class does not implement this work around, so we do. */ if (baseURLs != null) { @@ -210,7 +210,7 @@ * preceded by "url(" and followed by ")". This method validates and * normalizes that input. * @param input The uri-specification as defined in the XSL-FO Standard 1.0, - * Section 5.11. + * Section 5.11. * @return The normalized String, or null if the input is not valid. */ public static String normalizeURISpecification(String input) { Modified: trunk/foray/foray-common/src/java/org/foray/common/XMLCharacter.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/XMLCharacter.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/XMLCharacter.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -244,7 +244,7 @@ private static final char[] IDEOGRAPHIC = { 0x4E00, 0x9FA5, 0x3007, 0x3007, - 0x3021, 0x3029, + 0x3021, 0x3029, }; private static final char[] COMBINING_CHAR = { @@ -555,7 +555,7 @@ * @param c The char which should be converted to a predefined XML entity * reference. * @return A string containing the predefined XML entity reference for - * <code>c</code>. + * <code>c</code>. */ public static String expandEntityReference(char c) { switch (c) { Modified: trunk/foray/foray-common/src/java/org/foray/common/XMLParser.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/XMLParser.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/XMLParser.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-common/src/java/org/foray/common/XMLUtil.java =================================================================== --- trunk/foray/foray-common/src/java/org/foray/common/XMLUtil.java 2006-06-17 20:59:22 UTC (rev 7683) +++ trunk/foray/foray-common/src/java/org/foray/common/XMLUtil.java 2006-06-17 21:11:11 UTC (rev 7684) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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 - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |