[FOray-commit] SF.net SVN: foray: [7804] trunk/foray/foray-core/src/java/org/foray/core
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-07-19 02:15:58
|
Revision: 7804 Author: victormote Date: 2006-07-18 19:15:55 -0700 (Tue, 18 Jul 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7804&view=rev Log Message: ----------- Remove the InputHandler classes entirely as they are now merely useless wrappers around an InputSource. Removed Paths: ------------- trunk/foray/foray-core/src/java/org/foray/core/FOInputHandler.java trunk/foray/foray-core/src/java/org/foray/core/InputHandler.java Deleted: trunk/foray/foray-core/src/java/org/foray/core/FOInputHandler.java =================================================================== --- trunk/foray/foray-core/src/java/org/foray/core/FOInputHandler.java 2006-07-19 02:15:39 UTC (rev 7803) +++ trunk/foray/foray-core/src/java/org/foray/core/FOInputHandler.java 2006-07-19 02:15:55 UTC (rev 7804) @@ -1,53 +0,0 @@ -/* - * 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 - * - */ - -/* $Id$ */ - -package org.foray.core; - - - -import org.apache.commons.logging.Log; - -import org.xml.sax.InputSource; - -import java.io.IOException; -import java.net.URL; - -/** - * Manages input if it is an xsl:fo file - */ -public class FOInputHandler extends InputHandler { - - URL foURL = null; - - public FOInputHandler (Log logger, URL url) { - super(logger); - this.foURL = url; - } - - public InputSource getInputSource () throws IOException { - InputSource inputSource = new InputSource(foURL.openStream()); - return inputSource; - } - -} Deleted: trunk/foray/foray-core/src/java/org/foray/core/InputHandler.java =================================================================== --- trunk/foray/foray-core/src/java/org/foray/core/InputHandler.java 2006-07-19 02:15:39 UTC (rev 7803) +++ trunk/foray/foray-core/src/java/org/foray/core/InputHandler.java 2006-07-19 02:15:55 UTC (rev 7804) @@ -1,50 +0,0 @@ -/* - * 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 - * - */ - -/* $Id$ */ - -package org.foray.core; - - - -import org.apache.commons.logging.Log; - -import org.xml.sax.InputSource; - -import java.io.IOException; - -public abstract class InputHandler { - - Log logger; - - public InputHandler(Log logger) { - this.logger = logger; - } - - /** - * Provides the SAX InputSource. - * @return The SAX InputSource for this handler. - * @throws IOException - */ - public abstract InputSource getInputSource() throws IOException ; - -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |