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/CharacterSprmCompressor.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.ArrayList; import java.util.List; import org.apache.poi.hwpf.usermodel.CharacterProperties; import org.apache.poi.util.Internal; import org.apache.poi.util.LittleEndian; @Internal public final class CharacterSprmCompressor { public CharacterSprmCompressor() { } public static byte[] compressCharacterProperty(CharacterProperties newCHP, CharacterProperties oldCHP) { List<byte[]> sprmList = new ArrayList<>(); int size = 0; if (newCHP.isFRMarkDel() != oldCHP.isFRMarkDel()) { int value = 0; if (newCHP.isFRMarkDel()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0800, value, null, sprmList); } if (newCHP.isFRMark() != oldCHP.isFRMark()) { int value = 0; if (newCHP.isFRMark()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0801, value, null, sprmList); } if (newCHP.isFFldVanish() != oldCHP.isFFldVanish()) { int value = 0; if (newCHP.isFFldVanish()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0802, value, null, sprmList); } if (newCHP.isFSpec() != oldCHP.isFSpec() || newCHP.getFcPic() != oldCHP.getFcPic()) { size += SprmUtils.addSprm((short)0x6a03, newCHP.getFcPic(), null, sprmList); } if (newCHP.getIbstRMark() != oldCHP.getIbstRMark()) { size += SprmUtils.addSprm((short)0x4804, newCHP.getIbstRMark(), null, sprmList); } if (!newCHP.getDttmRMark().equals(oldCHP.getDttmRMark())) { byte[] buf = new byte[4]; newCHP.getDttmRMark().serialize(buf, 0); size += SprmUtils.addSprm((short)0x6805, LittleEndian.getInt(buf), null, sprmList); } if (newCHP.isFData() != oldCHP.isFData()) { int value = 0; if (newCHP.isFData()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0806, value, null, sprmList); } if (newCHP.isFSpec() && newCHP.getFtcSym() != 0) { byte[] varParam = new byte[4]; LittleEndian.putShort(varParam, 0, (short)newCHP.getFtcSym()); LittleEndian.putShort(varParam, 2, (short)newCHP.getXchSym()); size += SprmUtils.addSprm((short)0x6a09, 0, varParam, sprmList); } if (newCHP.isFOle2() != oldCHP.isFOle2()) { int value = 0; if (newCHP.isFOle2()) { value = 0x01; } size += SprmUtils.addSprm((short)0x080a, value, null, sprmList); } if (newCHP.getIcoHighlight() != oldCHP.getIcoHighlight()) { size += SprmUtils.addSprm((short)0x2a0c, newCHP.getIcoHighlight(), null, sprmList); } if (newCHP.getFcObj() != oldCHP.getFcObj()) { size += SprmUtils.addSprm((short)0x680e, newCHP.getFcObj(), null, sprmList); } if (newCHP.getIstd() != oldCHP.getIstd()) { size += SprmUtils.addSprm((short)0x4a30, newCHP.getIstd(), null, sprmList); } if (newCHP.isFBold() != oldCHP.isFBold()) { int value = 0; if (newCHP.isFBold()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0835, value, null, sprmList); } if (newCHP.isFItalic() != oldCHP.isFItalic()) { int value = 0; if (newCHP.isFItalic()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0836, value, null, sprmList); } if (newCHP.isFStrike() != oldCHP.isFStrike()) { int value = 0; if (newCHP.isFStrike()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0837, value, null, sprmList); } if (newCHP.isFOutline() != oldCHP.isFOutline()) { int value = 0; if (newCHP.isFOutline()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0838, value, null, sprmList); } if (newCHP.isFShadow() != oldCHP.isFShadow()) { int value = 0; if (newCHP.isFShadow()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0839, value, null, sprmList); } if (newCHP.isFSmallCaps() != oldCHP.isFSmallCaps()) { int value = 0; if (newCHP.isFSmallCaps()) { value = 0x01; } size += SprmUtils.addSprm((short)0x083a, value, null, sprmList); } if (newCHP.isFCaps() != oldCHP.isFCaps()) { int value = 0; if (newCHP.isFCaps()) { value = 0x01; } size += SprmUtils.addSprm((short)0x083b, value, null, sprmList); } if (newCHP.isFVanish() != oldCHP.isFVanish()) { int value = 0; if (newCHP.isFVanish()) { value = 0x01; } size += SprmUtils.addSprm((short)0x083c, value, null, sprmList); } if (newCHP.getKul() != oldCHP.getKul()) { size += SprmUtils.addSprm((short)0x2a3e, newCHP.getKul(), null, sprmList); } if (newCHP.getDxaSpace() != oldCHP.getDxaSpace()) { size += SprmUtils.addSprm((short)0x8840, newCHP.getDxaSpace(), null, sprmList); } if (newCHP.getIco() != oldCHP.getIco()) { size += SprmUtils.addSprm((short)0x2a42, newCHP.getIco(), null, sprmList); } if (newCHP.getHps() != oldCHP.getHps()) { size += SprmUtils.addSprm((short)0x4a43, newCHP.getHps(), null, sprmList); } if (newCHP.getHpsPos() != oldCHP.getHpsPos()) { size += SprmUtils.addSprm((short)0x4845, newCHP.getHpsPos(), null, sprmList); } if (newCHP.getHpsKern() != oldCHP.getHpsKern()) { size += SprmUtils.addSprm((short)0x484b, newCHP.getHpsKern(), null, sprmList); } if (newCHP.getHresi().equals( oldCHP.getHresi() )) { size += SprmUtils.addSprm((short)0x484e, newCHP.getHresi().getValue(), null, sprmList); } if (newCHP.getFtcAscii() != oldCHP.getFtcAscii()) { size += SprmUtils.addSprm((short)0x4a4f, newCHP.getFtcAscii(), null, sprmList); } if (newCHP.getFtcFE() != oldCHP.getFtcFE()) { size += SprmUtils.addSprm((short)0x4a50, newCHP.getFtcFE(), null, sprmList); } if (newCHP.getFtcOther() != oldCHP.getFtcOther()) { size += SprmUtils.addSprm((short)0x4a51, newCHP.getFtcOther(), null, sprmList); } if (newCHP.isFDStrike() != oldCHP.isFDStrike()) { int value = 0; if (newCHP.isFDStrike()) { value = 0x01; } size += SprmUtils.addSprm((short)0x2a53, value, null, sprmList); } if (newCHP.isFImprint() != oldCHP.isFImprint()) { int value = 0; if (newCHP.isFImprint()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0854, value, null, sprmList); } if (newCHP.isFSpec() != oldCHP.isFSpec()) { int value = 0; if (newCHP.isFSpec()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0855, value, null, sprmList); } if (newCHP.isFObj() != oldCHP.isFObj()) { int value = 0; if (newCHP.isFObj()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0856, value, null, sprmList); } if (newCHP.isFEmboss() != oldCHP.isFEmboss()) { int value = 0; if (newCHP.isFEmboss()) { value = 0x01; } size += SprmUtils.addSprm((short)0x0858, value, null, sprmList); } if (newCHP.getSfxtText() != oldCHP.getSfxtText()) { size += SprmUtils.addSprm((short)0x2859, newCHP.getSfxtText(), null, sprmList); } if ( !newCHP.getCv().equals( oldCHP.getCv() ) ) { // don't add a sprm if we're looking at an ico = Auto if ( !newCHP.getCv().isEmpty() ) size += SprmUtils.addSprm( CharacterProperties.SPRM_CCV, newCHP .getCv().getValue(), null, sprmList ); } return SprmUtils.getGrpprl(sprmList, size); } }
⏎ org/apache/poi/hwpf/sprm/CharacterSprmCompressor.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, 25678👍, 0💬
Popular Posts:
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
What Is jniwrap.jar in JNIWrapper 3.7.1? winpack.jar in JNIWrapper 3.7.1 is an add-on JAR file for J...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...