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-5.2.3.jar?
What Is poi-5.2.3.jar?
✍: FYIcenter.com
poi-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-5.2.3.jar supports Apache POI components that read and write Microsoft's OLE 2 Compound document format, which is used in early versions of Microsoft Office tools like Word 97, Excel 97, PowerPoint 97, etc.
poi-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-5.2.3.jar Target JDK version: 9 File name: poi.jar, poi-5.2.3.jar File size: 2964641 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-5.2.3.jar:
⏎ org/apache/poi/hssf/record/WSBoolRecord.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.hssf.record;
import static org.apache.poi.util.GenericRecordUtil.getBitsAsString;
import java.util.Map;
import java.util.function.Supplier;
import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndianOutput;
/**
* Stores workbook settings (aka its a big "everything we didn't put somewhere else")
*/
public final class WSBoolRecord extends StandardRecord {
public static final short sid = 0x0081;
// are automatic page breaks visible
private static final BitField autobreaks = BitFieldFactory.getInstance(0x01);
// bits 1 to 3 unused
// is sheet dialog sheet
private static final BitField dialog = BitFieldFactory.getInstance(0x10);
// whether to apply automatic styles to outlines
private static final BitField applystyles = BitFieldFactory.getInstance(0x20);
// whether summary rows will appear below detail in outlines
private static final BitField rowsumsbelow = BitFieldFactory.getInstance(0x40);
// whether summary rows will appear right of the detail in outlines
private static final BitField rowsumsright = BitFieldFactory.getInstance(0x80);
// whether to fit stuff to the page
private static final BitField fittopage = BitFieldFactory.getInstance(0x01);
// bit 2 reserved
// whether to display outline symbols (in the gutters)
private static final BitField displayguts = BitFieldFactory.getInstance(0x06);
// bits 4-5 reserved
// whether to use alternate expression eval
private static final BitField alternateexpression = BitFieldFactory.getInstance(0x40);
// whether to use alternate formula entry
private static final BitField alternateformula = BitFieldFactory.getInstance(0x80);
// crappy names are because this is really one big short field (2byte)
private byte field_1_wsbool;
// but the docs inconsistently use it as 2 separate bytes
private byte field_2_wsbool;
public WSBoolRecord() {}
public WSBoolRecord(WSBoolRecord other) {
super(other);
field_1_wsbool = other.field_1_wsbool;
field_2_wsbool = other.field_2_wsbool;
}
public WSBoolRecord(RecordInputStream in) {
byte[] data = in.readRemainder();
field_1_wsbool =
data[ 1 ]; // backwards because theoretically this is one short field
field_2_wsbool =
data[ 0 ]; // but it was easier to implement it this way to avoid confusion
} // because the dev kit shows the masks for it as 2 byte fields
// why? Why ask why? But don't drink bud dry as its a really
// crappy beer, try the czech "Budvar" beer (which is the real
// budweiser though its ironically good...its sold in the USs
// as czechvar --- odd that they had the name first but can't
// use it)...
/**
* set first byte (see bit setters)
*
* @param bool1 Set boolean 1 of this record
*/
public void setWSBool1(byte bool1) {
field_1_wsbool = bool1;
}
// bool1 bitfields
/**
* show automatic page breaks or not
* @param ab whether to show auto page breaks
*/
public void setAutobreaks(boolean ab)
{
field_1_wsbool = autobreaks.setByteBoolean(field_1_wsbool, ab);
}
/**
* set whether sheet is a dialog sheet or not
* @param isDialog or not
*/
public void setDialog(boolean isDialog)
{
field_1_wsbool = dialog.setByteBoolean(field_1_wsbool, isDialog);
}
/**
* set if row summaries appear below detail in the outline
* @param below or not
*/
public void setRowSumsBelow(boolean below)
{
field_1_wsbool = rowsumsbelow.setByteBoolean(field_1_wsbool, below);
}
/**
* set if col summaries appear right of the detail in the outline
* @param right or not
*/
public void setRowSumsRight(boolean right)
{
field_1_wsbool = rowsumsright.setByteBoolean(field_1_wsbool, right);
}
// end bitfields
/**
* set the second byte (see bit setters)
*
* @param bool2 Set boolean 2 of this record
*/
public void setWSBool2(byte bool2)
{
field_2_wsbool = bool2;
}
// bool2 bitfields
/**
* fit to page option is on
* @param fit2page fit or not
*/
public void setFitToPage(boolean fit2page)
{
field_2_wsbool = fittopage.setByteBoolean(field_2_wsbool, fit2page);
}
/**
* set whether to display the guts or not
*
* @param guts or no guts (or glory)
*/
public void setDisplayGuts(boolean guts)
{
field_2_wsbool = displayguts.setByteBoolean(field_2_wsbool, guts);
}
/**
* whether alternate expression evaluation is on
* @param altexp alternative expression evaluation or not
*/
public void setAlternateExpression(boolean altexp)
{
field_2_wsbool = alternateexpression.setByteBoolean(field_2_wsbool,
altexp);
}
/**
* whether alternative formula entry is on
* @param formula alternative formulas or not
*/
public void setAlternateFormula(boolean formula)
{
field_2_wsbool = alternateformula.setByteBoolean(field_2_wsbool,
formula);
}
// end bitfields
/**
* get first byte (see bit getters)
*
* @return boolean 1 of this record
*/
public byte getWSBool1()
{
return field_1_wsbool;
}
// bool1 bitfields
/**
* show automatic page breaks or not
* @return whether to show auto page breaks
*/
public boolean getAutobreaks()
{
return autobreaks.isSet(field_1_wsbool);
}
/**
* get whether sheet is a dialog sheet or not
* @return isDialog or not
*/
public boolean getDialog()
{
return dialog.isSet(field_1_wsbool);
}
/**
* get if row summaries appear below detail in the outline
* @return below or not
*/
public boolean getRowSumsBelow()
{
return rowsumsbelow.isSet(field_1_wsbool);
}
/**
* get if col summaries appear right of the detail in the outline
* @return right or not
*/
public boolean getRowSumsRight()
{
return rowsumsright.isSet(field_1_wsbool);
}
// end bitfields
/**
* get the second byte (see bit getters)
*
* @return boolean 1 of this record
*/
public byte getWSBool2() {
return field_2_wsbool;
}
// bool2 bitfields
/**
* fit to page option is on
* @return fit or not
*/
public boolean getFitToPage() {
return fittopage.isSet(field_2_wsbool);
}
/**
* get whether to display the guts or not
*
* @return guts or no guts (or glory)
*/
public boolean getDisplayGuts() {
return displayguts.isSet(field_2_wsbool);
}
/**
* whether alternate expression evaluation is on
* @return alternative expression evaluation or not
*/
public boolean getAlternateExpression() {
return alternateexpression.isSet(field_2_wsbool);
}
/**
* whether alternative formula entry is on
* @return alternative formulas or not
*/
public boolean getAlternateFormula() {
return alternateformula.isSet(field_2_wsbool);
}
public void serialize(LittleEndianOutput out) {
out.writeByte(getWSBool2());
out.writeByte(getWSBool1());
}
protected int getDataSize() {
return 2;
}
public short getSid()
{
return sid;
}
@Override
public WSBoolRecord copy() {
return new WSBoolRecord(this);
}
@Override
public HSSFRecordTypes getGenericRecordType() {
return HSSFRecordTypes.WS_BOOL;
}
@Override
public Map<String, Supplier<?>> getGenericProperties() {
return GenericRecordUtil.getGenericProperties(
"wsbool1", getBitsAsString(this::getWSBool1,
new BitField[]{autobreaks, dialog, applystyles, rowsumsbelow, rowsumsright},
new String[]{"AUTO_BREAKS", "DIALOG", "APPLY_STYLES", "ROW_SUMS_BELOW", "ROW_SUMS_RIGHT"}),
"wsbool2", getBitsAsString(this::getWSBool2,
new BitField[]{fittopage, displayguts, alternateexpression, alternateformula},
new String[]{"FIT_TO_PAGE", "DISPLAY_GUTS", "ALTERNATE_EXPRESSION", "ALTERNATE_FORMULA"})
);
}
}
⏎ org/apache/poi/hssf/record/WSBoolRecord.java
Or download all of them as a single archive file:
File name: poi-5.2.3-src.zip File size: 2479830 bytes Release date: 2022-09-09 Download
⇒ What Is poi-ooxml-5.2.3.jar?
⇐ What Is poi-bin-5.2.3-20220909.zip?
2017-04-04, ≈265🔥, 0💬
Popular Posts:
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
JDK 17 java.rmi.jmod is the JMOD file for JDK 17 RMI (Remote Method Invocation) module. JDK 17 RMI m...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...