Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is fop.jar in fop-2.7-bin.zip
What Is fop.jar? I got it from the fop-2.7-bin.zip.
✍: FYIcenter.com
fop.jar in fop-2.7-bin.zip is the JAR file for FOP 2.7, which is a print formatter driven by XSL formatting objects (XSL-FO). You can obtain fop.jar from the build folder of the fop-2.7-bin.zip file.
Below is the information about the fop.jar (2.2) file:
JAR File Size and Download Location:
JAR name: fop.jar, fop-2.7.jar Target JDK version: 1.7 File name: fop.jar File size: 4442817 bytes Release date: 20-Jan-2022 Download: Apache FOP Website
Java source code files for fop.jar:
⏎ org/apache/fop/afp/util/AFPResourceAccessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ /* $Id$ */ package org.apache.fop.afp.util; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.net.URISyntaxException; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.fop.apps.io.InternalResourceResolver; /** * Defines an interface through which external resource objects can be accessed. */ public final class AFPResourceAccessor { private static final Log log = LogFactory.getLog(AFPResourceAccessor.class); private final InternalResourceResolver resourceResolver; private final URI baseURI; private final URIResolver uriResolver; /** * Constructor for resource to be accessed via the {@link org.apache.fop.apps.FOUserAgent}. This * contructor takes a base URI for resolving font resource URIs. So, if fonts need to be * accessed, you can set the {@link org.apache.fop.fonts.FontManager}'s base URI instead of the * one on the {@link org.apache.fop.apps.FopFactory}. * * @param resourceResolver the resolver of resources * @param baseURI the custom base URI to resolve relative URIs against (may be null) */ public AFPResourceAccessor(InternalResourceResolver resourceResolver, String baseURI) { this.resourceResolver = resourceResolver; URI actualBaseURI = null; URIResolver uriResolver; if (baseURI == null) { actualBaseURI = null; uriResolver = new NullBaseURIResolver(); } else { try { actualBaseURI = InternalResourceResolver.getBaseURI(baseURI); uriResolver = new BaseURIResolver(); } catch (URISyntaxException use) { log.error("The URI given \"" + baseURI + "\" is invalid: " + use.getMessage()); actualBaseURI = null; uriResolver = new NullBaseURIResolver(); } } this.baseURI = actualBaseURI; this.uriResolver = uriResolver; } /** * Constructor for resource to be accessed via the {@link org.apache.fop.apps.FOUserAgent}. * * @param resourceResolver the resolver of resources */ public AFPResourceAccessor(InternalResourceResolver resourceResolver) { this(resourceResolver, null); } /** * Creates an {@link InputStream} given a URI. * * @param uri the URI of the InputStream * @return an InputStream * @throws IOException if an I/O error occurs while creating the InputStream. */ public InputStream createInputStream(URI uri) throws IOException { return resourceResolver.getResource(uriResolver.resolveURI(uri)); } /** * Returns the resolved URI, given the URI of a resource. * * @param uri the resource URI * @return the resolved URI */ public URI resolveURI(String uri) { return uriResolver.resolveURI(uri); } private interface URIResolver { URI resolveURI(URI uri); URI resolveURI(String uri); } private static final class NullBaseURIResolver implements URIResolver { public URI resolveURI(URI uri) { return uri; } public URI resolveURI(String uri) { return URI.create("./" + uri.trim()); } } private final class BaseURIResolver implements URIResolver { public URI resolveURI(URI uri) { return baseURI.resolve(uri); } public URI resolveURI(String uri) { return baseURI.resolve(uri.trim()); } } }
⏎ org/apache/fop/afp/util/AFPResourceAccessor.java
Or download all of them as a single archive file:
File name: fop-2.7-src.zip File size: 3401312 bytes Release date: 2022-01-20 Download
⇒ "fop" Command in fop-2.7-bin.zip
2016-07-07, 61015👍, 0💬
Popular Posts:
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
Saxon-HE (home edition) is an open source product available under the Mozilla Public License. It pro...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...