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 poi-scratchpad-5.2.3.jar?
What Is poi-scratchpad-5.2.3.jar?
✍: FYIcenter.com
poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-scratchpad-5.2.3.jar provides support for older versions of Microsoft document files like Word 97, Excel 97, PowerPoint 97, etc.
poi-scratchpad-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-scratchpad-5.2.3.jar Target JDK version: 9 Dependency: poi.jar File name: poi-scratchpad.jar, poi-scratchpad-5.2.3.jar File size: 1897121 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-scratchpad-5.2.3.jar:
⏎ org/apache/poi/hwpf/sprm/SectionSprmUncompressor.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. ==================================================================== */ package org.apache.poi.hwpf.sprm; import java.util.Arrays; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.hwpf.usermodel.BorderCode; import org.apache.poi.hwpf.usermodel.SectionProperties; import org.apache.poi.util.Internal; import static org.apache.logging.log4j.util.Unbox.box; import static org.apache.poi.util.HexDump.byteToHex; @Internal public final class SectionSprmUncompressor extends SprmUncompressor { private static final Logger LOG = LogManager.getLogger(SectionSprmUncompressor.class); public SectionSprmUncompressor() { } public static SectionProperties uncompressSEP(byte[] grpprl, int offset) { SectionProperties newProperties = new SectionProperties(); SprmIterator sprmIt = new SprmIterator(grpprl, offset); while (sprmIt.hasNext()) { SprmOperation sprm = sprmIt.next(); unCompressSEPOperation(newProperties, sprm); } return newProperties; } /** * Used in decompression of a sepx. This performs an operation defined by * a single sprm. * * @param newSEP The SectionProperty to perform the operation on. * @param sprm The operation to perform. */ static void unCompressSEPOperation (SectionProperties newSEP, SprmOperation sprm) { int operation = sprm.getOperation(); switch (operation) { case 0: newSEP.setCnsPgn ((byte) sprm.getOperand()); break; case 0x1: newSEP.setIHeadingPgn ((byte) sprm.getOperand()); break; case 0x2: byte[] buf = Arrays.copyOfRange(sprm.getGrpprl(), sprm.getGrpprlOffset(), sprm.getGrpprlOffset() + (sprm.size() - 3)); newSEP.setOlstAnm (buf); break; case 0x3: //not quite sure break; case 0x4: //not quite sure break; case 0x5: newSEP.setFEvenlySpaced (getFlag (sprm.getOperand())); break; case 0x6: newSEP.setFUnlocked (getFlag (sprm.getOperand())); break; case 0x7: newSEP.setDmBinFirst ((short) sprm.getOperand()); break; case 0x8: newSEP.setDmBinOther ((short) sprm.getOperand()); break; case 0x9: newSEP.setBkc ((byte) sprm.getOperand()); break; case 0xa: newSEP.setFTitlePage (getFlag (sprm.getOperand())); break; case 0xb: newSEP.setCcolM1 ((short) sprm.getOperand()); break; case 0xc: newSEP.setDxaColumns (sprm.getOperand()); break; case 0xd: newSEP.setFAutoPgn (getFlag (sprm.getOperand())); break; case 0xe: newSEP.setNfcPgn ((byte) sprm.getOperand()); break; case 0xf: newSEP.setDyaPgn ((short) sprm.getOperand()); break; case 0x10: newSEP.setDxaPgn ((short) sprm.getOperand()); break; case 0x11: newSEP.setFPgnRestart (getFlag (sprm.getOperand())); break; case 0x12: newSEP.setFEndNote (getFlag (sprm.getOperand())); break; case 0x13: newSEP.setLnc ((byte) sprm.getOperand()); break; case 0x14: newSEP.setGrpfIhdt ((byte) sprm.getOperand()); break; case 0x15: newSEP.setNLnnMod ((short) sprm.getOperand()); break; case 0x16: newSEP.setDxaLnn (sprm.getOperand()); break; case 0x17: newSEP.setDyaHdrTop (sprm.getOperand()); break; case 0x18: newSEP.setDyaHdrBottom (sprm.getOperand()); break; case 0x19: newSEP.setFLBetween (getFlag (sprm.getOperand())); break; case 0x1a: newSEP.setVjc ((byte) sprm.getOperand()); break; case 0x1b: newSEP.setLnnMin ((short) sprm.getOperand()); break; case 0x1c: newSEP.setPgnStart ((short) sprm.getOperand()); break; case 0x1d: newSEP.setDmOrientPage( sprm.getOperand() != 0 ); break; case 0x1e: //nothing break; case 0x1f: newSEP.setXaPage (sprm.getOperand()); break; case 0x20: newSEP.setYaPage (sprm.getOperand()); break; case 0x21: newSEP.setDxaLeft (sprm.getOperand()); break; case 0x22: newSEP.setDxaRight (sprm.getOperand()); break; case 0x23: newSEP.setDyaTop (sprm.getOperand()); break; case 0x24: newSEP.setDyaBottom (sprm.getOperand()); break; case 0x25: newSEP.setDzaGutter (sprm.getOperand()); break; case 0x26: newSEP.setDmPaperReq ((short) sprm.getOperand()); break; case 0x27: newSEP.setFPropMark (getFlag (sprm.getOperand())); break; case 0x28: break; case 0x29: break; case 0x2a: break; case 0x2b: newSEP.setBrcTop(new BorderCode(sprm.getGrpprl(), sprm.getGrpprlOffset())); break; case 0x2c: newSEP.setBrcLeft(new BorderCode(sprm.getGrpprl(), sprm.getGrpprlOffset())); break; case 0x2d: newSEP.setBrcBottom(new BorderCode(sprm.getGrpprl(), sprm.getGrpprlOffset())); break; case 0x2e: newSEP.setBrcRight(new BorderCode(sprm.getGrpprl(), sprm.getGrpprlOffset())); break; case 0x2f: newSEP.setPgbProp (sprm.getOperand()); break; case 0x30: newSEP.setDxtCharSpace (sprm.getOperand()); break; case 0x31: newSEP.setDyaLinePitch (sprm.getOperand()); break; case 0x33: newSEP.setWTextFlow ((short) sprm.getOperand()); break; case 0x3C: // [MS-DOC], v20140721, 2.6.4, sprmSRncFtn newSEP.setRncFtn((short) sprm.getOperand()); break; case 0x3E: // [MS-DOC], v20140721, 2.6.4, sprmSRncEdn newSEP.setRncEdn((short) sprm.getOperand()); break; case 0x3F: // [MS-DOC], v20140721, 2.6.4, sprmSNFtn newSEP.setNFtn(sprm.getOperand()); break; case 0x40: // [MS-DOC], v20140721, 2.6.4, sprmSNFtnRef newSEP.setNfcFtnRef(sprm.getOperand()); break; case 0x41: // [MS-DOC], v20140721, 2.6.4, sprmSNEdn newSEP.setNEdn(sprm.getOperand()); break; case 0x42: // [MS-DOC], v20140721, 2.6.4, sprmSNEdnRef newSEP.setNfcEdnRef(sprm.getOperand()); break; default: LOG.atInfo().log("Unsupported Sprm operation: {} ({})", box(operation), byteToHex(operation)); break; } } }
⏎ org/apache/poi/hwpf/sprm/SectionSprmUncompressor.java
Or download all of them as a single archive file:
File name: poi-scratchpad-5.2.3-src.zip File size: 1238744 bytes Release date: 2022-09-09 Download
⇒ What Is poi-examples-5.2.3.jar?
⇐ What Is poi-excelant-5.2.3.jar?
2017-03-22, 25413👍, 0💬
Popular Posts:
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...