Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/hslf/model/textproperties/TextPFException9.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.
==================================================================== */
/**
* A structure that specifies additional paragraph-level formatting
* such as Bullet Auto Number Scheme.
*/
package org.apache.poi.hslf.model.textproperties;
import java.util.Map;
import java.util.function.Supplier;
import org.apache.poi.common.usermodel.GenericRecord;
import org.apache.poi.sl.usermodel.AutoNumberingScheme;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndian;
/**
* This structure store text autonumber scheme and start number.
* If a paragraph has an autonumber(fBulletHasAutoNumber = 0x0001) but start number and scheme are empty,
* this means the default values will be used: statNumber=1 and sheme=ANM_ArabicPeriod
* @see <a href="http://social.msdn.microsoft.com/Forums/mr-IN/os_binaryfile/thread/650888db-fabd-4b95-88dc-f0455f6e2d28">
* http://social.msdn.microsoft.com/Forums/mr-IN/os_binaryfile/thread/650888db-fabd-4b95-88dc-f0455f6e2d28</a>
*/
public class TextPFException9 implements GenericRecord {
private static final AutoNumberingScheme DEFAULT_AUTONUMBER_SCHEME = AutoNumberingScheme.arabicPeriod;
private static final Short DEFAULT_START_NUMBER = 1;
//private final byte mask1;
//private final byte mask2;
private final byte mask3;
private final byte mask4;
private final Short bulletBlipRef;
private final Short fBulletHasAutoNumber;
private final AutoNumberingScheme autoNumberScheme;
private final Short autoNumberStartNumber;
private final int recordLength;
public TextPFException9(final byte[] source, final int startIndex) { // NOSONAR
//this.mask1 = source[startIndex];
//this.mask2 = source[startIndex + 1];
this.mask3 = source[startIndex + 2];
this.mask4 = source[startIndex + 3];
int length = 4;
int index = startIndex + 4;
if (0 == (mask3 & (byte)0x80 )) {
this.bulletBlipRef = null;
} else {
this.bulletBlipRef = LittleEndian.getShort(source, index);
index +=2;
length = 6;
}
if (0 == (mask4 & 2)) {
this.fBulletHasAutoNumber = null;
} else {
this.fBulletHasAutoNumber = LittleEndian.getShort(source, index);
index +=2;
length +=2;
}
if (0 == (mask4 & 1)) {
this.autoNumberScheme = null;
this.autoNumberStartNumber = null;
} else {
this.autoNumberScheme = AutoNumberingScheme.forNativeID(LittleEndian.getShort(source, index));
index +=2;
this.autoNumberStartNumber = LittleEndian.getShort(source, index);
index +=2;
length +=4;
}
this.recordLength = length;
}
public Short getBulletBlipRef() {
return bulletBlipRef;
}
public Short getfBulletHasAutoNumber() {
return fBulletHasAutoNumber;
}
public AutoNumberingScheme getAutoNumberScheme() {
if (autoNumberScheme != null) {
return autoNumberScheme;
}
return hasBulletAutoNumber() ? DEFAULT_AUTONUMBER_SCHEME : null;
}
public Short getAutoNumberStartNumber() {
if (autoNumberStartNumber != null) {
return autoNumberStartNumber;
}
return hasBulletAutoNumber() ? DEFAULT_START_NUMBER : null;
}
private boolean hasBulletAutoNumber() {
final Short one = 1;
return one.equals(fBulletHasAutoNumber);
}
public int getRecordLength() {
return recordLength;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Record length: ").append(this.recordLength).append(" bytes\n");
sb.append("bulletBlipRef: ").append(this.bulletBlipRef).append("\n");
sb.append("fBulletHasAutoNumber: ").append(this.fBulletHasAutoNumber).append("\n");
sb.append("autoNumberScheme: ").append(this.autoNumberScheme).append("\n");
sb.append("autoNumberStartNumber: ").append(this.autoNumberStartNumber).append("\n");
return sb.toString();
}
@Override
public Map<String, Supplier<?>> getGenericProperties() {
return GenericRecordUtil.getGenericProperties(
"bulletBlipRef", this::getBulletBlipRef,
"bulletHasAutoNumber", this::hasBulletAutoNumber,
"autoNumberScheme", this::getAutoNumberScheme,
"autoNumberStartNumber", this::getAutoNumberStartNumber
);
}
}
⏎ org/apache/poi/hslf/model/textproperties/TextPFException9.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, ≈140🔥, 0💬
Popular Posts:
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
What Is mail.jar of JavaMail 1.4.2? I got the JAR file from javamail-1.4.2.zip. mail.jar in javamail...
itextpdf.jar is a component in iText 5 Java library to provide core functionalities. iText Java libr...
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...