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/fonts/apps/AbstractFontReader.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: AbstractFontReader.java 1617052 2014-08-10 06:55:01Z gadams $ */ package org.apache.fop.fonts.apps; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.util.List; import java.util.Map; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * Abstract base class for the PFM and TTF Reader command-line applications. */ public abstract class AbstractFontReader { /** Logger instance */ protected static final Log log = LogFactory.getLog(AbstractFontReader.class); /** * Main constructor. */ protected AbstractFontReader() { } /** * Parse commandline arguments. put options in the HashMap and return * arguments in the String array * the arguments: -fn Perpetua,Bold -cn PerpetuaBold per.ttf Perpetua.xml * returns a String[] with the per.ttf and Perpetua.xml. The hash * will have the (key, value) pairs: (-fn, Perpetua) and (-cn, PerpetuaBold) * @param options Map that will receive options * @param args the command-line arguments * @return the arguments */ protected static String[] parseArguments(Map options, String[] args) { List arguments = new java.util.ArrayList(); for (int i = 0; i < args.length; i++) { if (args[i].startsWith("-")) { if ("-t".equals(args[i]) || "-d".equals(args[i]) || "-q".equals(args[i])) { options.put(args[i], ""); } else if ((i + 1) < args.length && !args[i + 1].startsWith("-")) { options.put(args[i], args[i + 1]); i++; } else { options.put(args[i], ""); } } else { arguments.add(args[i]); } } return (String[])arguments.toArray(new String[arguments.size()]); } /** * Sets the logging level. * @param level the logging level ("debug", "info", "error" etc., see Jakarta Commons Logging) */ protected static void setLogLevel(String level) { // Set the evel for future loggers. LogFactory.getFactory().setAttribute("level", level); } /** * Determines the log level based of the options from the command-line. * @param options the command-line options */ protected static void determineLogLevel(Map options) { //Determine log level if (options.get("-t") != null) { setLogLevel("trace"); } else if (options.get("-d") != null) { setLogLevel("debug"); } else if (options.get("-q") != null) { setLogLevel("error"); } else { setLogLevel("info"); } } /** * Writes the generated DOM Document to a file. * * @param doc The DOM Document to save. * @param target The target filename for the XML file. * @throws TransformerException if an error occurs during serialization */ public void writeFontXML(org.w3c.dom.Document doc, String target) throws TransformerException { writeFontXML(doc, new File(target)); } /** * Writes the generated DOM Document to a file. * * @param doc The DOM Document to save. * @param target The target file for the XML file. * @throws TransformerException if an error occurs during serialization */ public void writeFontXML(org.w3c.dom.Document doc, File target) throws TransformerException { log.info("Writing xml font file " + target + "..."); try { OutputStream out = new java.io.FileOutputStream(target); out = new java.io.BufferedOutputStream(out); try { TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(); transformer.transform( new javax.xml.transform.dom.DOMSource(doc), new javax.xml.transform.stream.StreamResult(out)); } finally { out.close(); } } catch (IOException ioe) { throw new TransformerException("Error writing the output file", ioe); } } }
⏎ org/apache/fop/fonts/apps/AbstractFontReader.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, 21871👍, 0💬
Popular Posts:
Commons DBCP provides Database Connection Pooling. JAR File Size and Download Location: File name: c...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
What Is HttpComponents httpcore-4.4.6.jar? HttpComponents httpcore-4.4.6.jar is the JAR file for Apa...
How to download and install Apache XMLBeans Source Package? The source package contains Java source ...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...