* ids.
*/
public class FormatTrackingHSSFListener implements HSSFListener {
- private static POILogger logger = POILogFactory.getLogger(FormatTrackingHSSFListener.class);
+ private final static POILogger logger = POILogFactory.getLogger(FormatTrackingHSSFListener.class);
private final HSSFListener _childListener;
private final HSSFDataFormatter _formatter;
private final NumberFormat _defaultFormat;
public final class PackageRelationshipCollection implements
Iterable<PackageRelationship> {
- private static POILogger logger = POILogFactory.getLogger(PackageRelationshipCollection.class);
+ private final static POILogger logger = POILogFactory.getLogger(PackageRelationshipCollection.class);
/**
* Package relationships ordered by ID.
* @see ContentTypeManager
*/
public class ZipContentTypeManager extends ContentTypeManager {
- private static POILogger logger = POILogFactory.getLogger(ZipContentTypeManager.class);
+ private final static POILogger logger = POILogFactory.getLogger(ZipContentTypeManager.class);
/**
* Delegate constructor to the super constructor.
* @author Julien Chable
*/
public final class ZipPartMarshaller implements PartMarshaller {
- private static POILogger logger = POILogFactory.getLogger(ZipPartMarshaller.class);
+ private final static POILogger logger = POILogFactory.getLogger(ZipPartMarshaller.class);
/**
* Save the specified part.
* and {@link #setMinInflateRatio(double)}.\r
*/\r
public class ZipSecureFile extends ZipFile {\r
- private static POILogger logger = POILogFactory.getLogger(ZipSecureFile.class);\r
+ private final static POILogger logger = POILogFactory.getLogger(ZipSecureFile.class);\r
\r
private static double MIN_INFLATE_RATIO = 0.01d;\r
private static long MAX_ENTRY_SIZE = 0xFFFFFFFFL;\r
* Provides handy methods for working with SAX parsers and readers
*/
public final class SAXHelper {
- private static POILogger logger = POILogFactory.getLogger(SAXHelper.class);
+ private static final POILogger logger = POILogFactory.getLogger(SAXHelper.class);
private static long lastLog = 0;
private SAXHelper() {}
// throttle the log somewhat as it can spam the log otherwise
if(System.currentTimeMillis() > lastLog + TimeUnit.MINUTES.toMillis(5)) {
logger.log(POILogger.WARN, "SAX Security Manager could not be setup [log suppressed for 5 minutes]", e);
+ lastLog = System.currentTimeMillis();
}
}
}
@Beta
public class XMLSlideShow extends POIXMLDocument
implements SlideShow<XSLFShape,XSLFTextParagraph> {
- private static POILogger _logger = POILogFactory.getLogger(XMLSlideShow.class);
+ private final static POILogger _logger = POILogFactory.getLogger(XMLSlideShow.class);
private CTPresentation _presentation;
private List<XSLFSlide> _slides;
@Beta\r
@Internal\r
public class XSLFColor {\r
- private static POILogger LOGGER = POILogFactory.getLogger(XSLFColor.class);\r
+ private final static POILogger LOGGER = POILogFactory.getLogger(XSLFColor.class);\r
\r
private XmlObject _xmlObject;\r
private Color _color;\r
@Beta\r
public class XSLFGroupShape extends XSLFShape\r
implements XSLFShapeContainer, GroupShape<XSLFShape,XSLFTextParagraph> {\r
- private static POILogger _logger = POILogFactory.getLogger(XSLFGroupShape.class);\r
+ private final static POILogger _logger = POILogFactory.getLogger(XSLFGroupShape.class);\r
\r
private final List<XSLFShape> _shapes;\r
private final CTGroupShapeProperties _grpSpPr;\r
private final XSSFMap _map;
- private static POILogger logger = POILogFactory.getLogger(XSSFImportFromXML.class);
+ private final static POILogger logger = POILogFactory.getLogger(XSSFImportFromXML.class);
public XSSFImportFromXML(XSSFMap map) {
_map = map;
* lookup cells within the current Window.
*/
public final class SXSSFFormulaEvaluator extends BaseXSSFFormulaEvaluator {
- private static POILogger logger = POILogFactory.getLogger(SXSSFFormulaEvaluator.class);
+ private final static POILogger logger = POILogFactory.getLogger(SXSSFFormulaEvaluator.class);
private SXSSFWorkbook wb;
import org.apache.poi.util.POILogger;
public final class ChunkStream extends Stream {
- private static POILogger logger = POILogFactory.getLogger(ChunkStream.class);
+ private final static POILogger logger = POILogFactory.getLogger(ChunkStream.class);
private ChunkFactory chunkFactory;
/** All the Chunks we contain */
* @see <a href="https://msdn.microsoft.com/en-us/library/cc433490(v=exchg.80).aspx">[MS-OXPROPS]: Exchange Server Protocols Master Property List</a>
*/
public final class MAPIDateAttribute extends MAPIAttribute {
- private static POILogger logger = POILogFactory.getLogger(MAPIDateAttribute.class);
+ private final static POILogger logger = POILogFactory.getLogger(MAPIDateAttribute.class);
private Date data;
/**
* to a {@link HMEFMessage} or one of its {@link Attachment}s.
*/
public final class MAPIStringAttribute extends MAPIAttribute {
- private static POILogger logger = POILogFactory.getLogger(MAPIStringAttribute.class);
+ private final static POILogger logger = POILogFactory.getLogger(MAPIStringAttribute.class);
private static final String CODEPAGE = "CP1252";
private final String data;
* or one of its {@link Attachment}s.
*/
public final class TNEFDateAttribute extends TNEFAttribute {
- private static POILogger logger = POILogFactory.getLogger(TNEFDateAttribute.class);
+ private final static POILogger logger = POILogFactory.getLogger(TNEFDateAttribute.class);
private Date data;
/**
* or one of its {@link Attachment}s.
*/
public final class TNEFStringAttribute extends TNEFAttribute {
- private static POILogger logger = POILogFactory.getLogger(TNEFStringAttribute.class);
+ private final static POILogger logger = POILogFactory.getLogger(TNEFStringAttribute.class);
private String data;
/**
*/
public class CurrentUserAtom
{
- private static POILogger logger = POILogFactory.getLogger(CurrentUserAtom.class);
+ private final static POILogger logger = POILogFactory.getLogger(CurrentUserAtom.class);
/** Standard Atom header */
public static final byte[] atomHeader = new byte[] { 0, 0, -10, 15 };
* data and so on.
*/
public final class POIFSChunkParser {
- private static POILogger logger = POILogFactory.getLogger(POIFSChunkParser.class);
+ private final static POILogger logger = POILogFactory.getLogger(POIFSChunkParser.class);
public static ChunkGroup[] parse(NPOIFSFileSystem fs) throws IOException {
return parse(fs.getRoot());
}\r
}\r
\r
- private static POILogger logger = POILogFactory.getLogger(HwmfBitmapDib.class);\r
+ private final static POILogger logger = POILogFactory.getLogger(HwmfBitmapDib.class);\r
private static final int BMP_HEADER_SIZE = 14;\r
\r
private int headerSize;\r
public static final int STTBLISTNAMES = 91;
public static final int STTBFUSSR = 92;
- private static POILogger log = POILogFactory.getLogger(FIBFieldHandler.class);
+ private final static POILogger log = POILogFactory.getLogger(FIBFieldHandler.class);
private static final int FIELD_SIZE = LittleEndian.INT_SIZE * 2;
@Internal
public final class ListTables
{
- private static POILogger log = POILogFactory.getLogger(ListTables.class);
+ private final static POILogger log = POILogFactory.getLogger(ListTables.class);
/**
* Both PlfLst and the following LVLs
*/
public class PlfLfo
{
- private static POILogger log = POILogFactory.getLogger( PlfLfo.class );
+ private final static POILogger log = POILogFactory.getLogger( PlfLfo.class );
/**
* An unsigned integer that specifies the count of elements in both the
*/
public final class HWPFList
{
- //private static POILogger log = POILogFactory.getLogger( HWPFList.class );
-
private boolean _ignoreLogicalLeftIdentation = false;
private LFO _lfo;
private LFOData _lfoData;
private ListData _listData;
private ListTables _listTables;
- private boolean _registered;
private StyleSheet _styleSheet;
/**
{
_listTables = listTables;
_styleSheet = styleSheet;
- _registered = true;
/* See documentation for sprmPIlfo (0x460B) */
if ( ilfo == 0 || ilfo == 0xF801 )
int styleIndex = _listData.getLevelStyle( level );
CharacterProperties base = _styleSheet.getCharacterStyle( styleIndex );
- byte[] grpprl = CharacterSprmCompressor.compressCharacterProperty( chp,
- base );
+ byte[] grpprl = CharacterSprmCompressor.compressCharacterProperty( chp, base );
listLevel.setNumberProperties( grpprl );
}
int styleIndex = _listData.getLevelStyle( level );
ParagraphProperties base = _styleSheet.getParagraphStyle( styleIndex );
- byte[] grpprl = ParagraphSprmCompressor.compressParagraphProperty( pap,
- base );
+ byte[] grpprl = ParagraphSprmCompressor.compressParagraphProperty( pap, base );
listLevel.setLevelProperties( grpprl );
}
import org.apache.poi.util.POILogger;
public class Paragraph extends Range implements Cloneable {
- private static POILogger log = POILogFactory.getLogger( Paragraph.class );
+ private final static POILogger log = POILogFactory.getLogger( Paragraph.class );
public final static short SPRM_JC = 0x2403;
public final static short SPRM_FSIDEBYSIDE = 0x2404;