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/modca/MapPageSegment.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: MapPageSegment.java 1761021 2016-09-16 11:40:57Z ssteiner $ */ package org.apache.fop.afp.modca; import java.io.IOException; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.util.Set; import org.apache.fop.afp.AFPConstants; import org.apache.fop.afp.util.BinaryUtils; /** * The Map Page Segment structured field identifies page segments that are required to present * a page on a physical medium. */ public class MapPageSegment extends AbstractAFPObject { private static final int MAX_SIZE = 127; /** * The collection of page segments (maximum of 127 stored as String) */ private Set pageSegments; /** * Constructor for the Map Page Overlay */ public MapPageSegment() { } private Set getPageSegments() { if (pageSegments == null) { this.pageSegments = new java.util.HashSet(); } return this.pageSegments; } /** * Add a page segment to to the map page segment object. * @param name the name of the page segment. * @throws MaximumSizeExceededException if the maximum size is reached */ public void addPageSegment(String name) throws MaximumSizeExceededException { if (getPageSegments().size() > MAX_SIZE) { throw new MaximumSizeExceededException(); } if (name.length() > 8) { throw new IllegalArgumentException("The name of page segment " + name + " must not be longer than 8 characters"); } if (LOG.isDebugEnabled()) { LOG.debug("addPageSegment():: adding page segment " + name); } getPageSegments().add(name); } /** * Indicates whether this object already contains the maximum number of * page segments. * @return true if the object is full */ public boolean isFull() { return this.pageSegments.size() >= MAX_SIZE; } /** {@inheritDoc} */ public void writeToStream(OutputStream os) throws IOException { int count = getPageSegments().size(); byte groupLength = 0x0C; int groupsLength = count * groupLength; byte[] data = new byte[groupsLength + 12 + 1]; data[0] = 0x5A; // Set the total record length byte[] rl1 = BinaryUtils.convert(data.length - 1, 2); //Ignore the // first byte in // the length data[1] = rl1[0]; data[2] = rl1[1]; // Structured field ID for a MPS data[3] = (byte) 0xD3; data[4] = Type.MIGRATION; data[5] = Category.PAGE_SEGMENT; data[6] = 0x00; // Flags data[7] = 0x00; // Reserved data[8] = 0x00; // Reserved data[9] = groupLength; data[10] = 0x00; // Reserved data[11] = 0x00; // Reserved data[12] = 0x00; // Reserved int pos = 13; for (Object pageSegment : this.pageSegments) { pos += 4; String name = (String) pageSegment; try { byte[] nameBytes = name.getBytes(AFPConstants.EBCIDIC_ENCODING); System.arraycopy(nameBytes, 0, data, pos, nameBytes.length); } catch (UnsupportedEncodingException usee) { LOG.error("UnsupportedEncodingException translating the name " + name); } pos += 8; } os.write(data); } }
⏎ org/apache/fop/afp/modca/MapPageSegment.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, 11518👍, 0💬
Popular Posts:
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...