mirror of
https://github.com/apache/poi.git
synced 2025-03-06 08:59:07 +00:00
PoiLogManager
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922055 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e400a0cc0d
commit
924d8e7894
@ -23,7 +23,6 @@ import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
@ -32,6 +31,7 @@ import org.apache.poi.hssf.usermodel.HSSFRichTextString;
|
||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
|
||||
/**
|
||||
* This class contains code that demonstrates how to insert plain, numbered
|
||||
@ -50,7 +50,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
*/
|
||||
@SuppressWarnings({"java:S106","java:S4823"})
|
||||
public class InCellLists {
|
||||
private static final Logger LOG = LogManager.getLogger(InCellLists.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(InCellLists.class);
|
||||
|
||||
|
||||
// This character looks like a solid, black, loser case letter 'o'
|
||||
|
@ -22,12 +22,12 @@ import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
|
||||
/**
|
||||
* Creates outlines.
|
||||
@ -35,7 +35,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
public class Outlines implements Closeable {
|
||||
public static void main(String[] args)
|
||||
throws IOException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
|
||||
Logger LOGGER = LogManager.getLogger(Outlines.class);
|
||||
Logger LOGGER = PoiLogManager.getLogger(Outlines.class);
|
||||
for (int i=1; i<=13; i++) {
|
||||
try (Outlines o = new Outlines()) {
|
||||
String log = (String) Outlines.class.getDeclaredMethod("test" + i).invoke(o);
|
||||
|
@ -28,8 +28,8 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellType;
|
||||
import org.apache.poi.ss.usermodel.DataFormatter;
|
||||
@ -134,7 +134,7 @@ import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
*/
|
||||
@SuppressWarnings({"java:S106","java:S4823","java:S1192"})
|
||||
public class ToCSV {
|
||||
private static final Logger LOG = LogManager.getLogger(ToCSV.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ToCSV.class);
|
||||
|
||||
private Workbook workbook;
|
||||
private ArrayList<ArrayList<String>> csvData;
|
||||
|
@ -35,8 +35,8 @@ import java.util.Random;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.opc.internal.ZipHelper;
|
||||
import org.apache.poi.ss.usermodel.DateUtil;
|
||||
import org.apache.poi.ss.usermodel.FillPatternType;
|
||||
@ -77,7 +77,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
* See <a href="https://poi.apache.org/spreadsheet/how-to.html#sxssf">SXSSF (Streaming Usermodel API)</a>.
|
||||
*/
|
||||
public final class BigGridDemo {
|
||||
private static final Logger LOG = LogManager.getLogger(BigGridDemo.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(BigGridDemo.class);
|
||||
|
||||
private static final Random rnd = new Random();
|
||||
|
||||
|
@ -23,15 +23,15 @@ import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hslf.usermodel.HSLFSlideShow;
|
||||
import org.apache.poi.hslf.usermodel.HSLFSlideShowImpl;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HSLFFileHandler extends SlideShowHandler {
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger(HSLFFileHandler.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(HSLFFileHandler.class);
|
||||
|
||||
@Override
|
||||
public void handleFile(InputStream stream, String path) throws Exception {
|
||||
|
@ -26,8 +26,8 @@ import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.exceptions.PartAlreadyExistsException;
|
||||
@ -53,7 +53,7 @@ import org.apache.poi.xwpf.usermodel.XWPFRelation;
|
||||
* </p>
|
||||
*/
|
||||
public class POIXMLDocumentPart {
|
||||
private static final Logger LOG = LogManager.getLogger(POIXMLDocumentPart.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(POIXMLDocumentPart.class);
|
||||
|
||||
private String coreDocumentRel = PackageRelationshipTypes.CORE_DOCUMENT;
|
||||
private PackagePart packagePart;
|
||||
|
@ -18,8 +18,8 @@ package org.apache.poi.ooxml;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLRelation.PackagePartConstructor;
|
||||
import org.apache.poi.ooxml.POIXMLRelation.ParentPartConstructor;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
@ -31,7 +31,7 @@ import org.apache.xmlbeans.XmlException;
|
||||
* Defines a factory API that enables sub-classes to create instances of <code>POIXMLDocumentPart</code>
|
||||
*/
|
||||
public abstract class POIXMLFactory {
|
||||
private static final Logger LOGGER = LogManager.getLogger(POIXMLFactory.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(POIXMLFactory.class);
|
||||
|
||||
/**
|
||||
* Create a POIXMLDocumentPart from existing package part and relation. This method is called
|
||||
|
@ -20,8 +20,8 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.openxml4j.opc.PackagePartName;
|
||||
@ -51,7 +51,7 @@ public abstract class POIXMLRelation {
|
||||
POIXMLDocumentPart init(POIXMLDocumentPart parent, PackagePart part) throws IOException, XmlException;
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger(POIXMLRelation.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(POIXMLRelation.class);
|
||||
|
||||
/**
|
||||
* Describes the content stored in a part.
|
||||
|
@ -24,8 +24,8 @@ import javax.xml.namespace.QName;
|
||||
import javax.xml.xpath.XPathFactory;
|
||||
|
||||
import com.microsoft.schemas.compatibility.AlternateContentDocument;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.xslf.usermodel.XSLFShape;
|
||||
import org.apache.xmlbeans.XmlCursor;
|
||||
@ -34,7 +34,7 @@ import org.apache.xmlbeans.XmlObject;
|
||||
import org.apache.xmlbeans.impl.values.XmlAnyTypeImpl;
|
||||
|
||||
public final class XPathHelper {
|
||||
private static final Logger LOG = LogManager.getLogger(XPathHelper.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XPathHelper.class);
|
||||
|
||||
private static final String OSGI_ERROR =
|
||||
"Schemas (*.xsb) for <CLASS> can't be loaded - usually this happens when OSGI " +
|
||||
|
@ -42,8 +42,8 @@ import java.util.Optional;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidOperationException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException;
|
||||
@ -72,7 +72,7 @@ public abstract class OPCPackage implements RelationshipSource, Closeable {
|
||||
/**
|
||||
* Logger.
|
||||
*/
|
||||
private static final Logger LOG = LogManager.getLogger(OPCPackage.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(OPCPackage.class);
|
||||
|
||||
/**
|
||||
* Default package access.
|
||||
|
@ -21,8 +21,8 @@ import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.*;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidOperationException;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
@ -37,7 +37,7 @@ import org.w3c.dom.NodeList;
|
||||
*/
|
||||
public final class PackageRelationshipCollection implements Iterable<PackageRelationship> {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(PackageRelationshipCollection.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(PackageRelationshipCollection.class);
|
||||
|
||||
/**
|
||||
* Package relationships ordered by ID.
|
||||
|
@ -23,8 +23,8 @@ import java.nio.ByteBuffer;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidOperationException;
|
||||
|
||||
@ -37,7 +37,7 @@ public final class PackagingURIHelper {
|
||||
// FIXME: this class implements a lot of path joining and splitting logic that
|
||||
// is already implemented in java.nio.file.Path.
|
||||
// This class should heavily leverage Java library code to reduce the number of lines of code that POI has to maintain and test
|
||||
private static final Logger LOG = LogManager.getLogger(PackagingURIHelper.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(PackagingURIHelper.class);
|
||||
|
||||
/**
|
||||
* Package root URI.
|
||||
|
@ -34,8 +34,8 @@ import java.util.stream.Collectors;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.logging.log4j.message.SimpleMessage;
|
||||
import org.apache.poi.UnsupportedFileFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
@ -63,7 +63,7 @@ public final class ZipPackage extends OPCPackage {
|
||||
private static boolean useTempFilePackageParts = false;
|
||||
private static boolean encryptTempFilePackageParts = false;
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(ZipPackage.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ZipPackage.class);
|
||||
|
||||
/**
|
||||
* Zip archive, as either a file on disk,
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package org.apache.poi.openxml4j.opc.internal;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
@ -38,7 +38,7 @@ import java.io.*;
|
||||
*/
|
||||
@Beta
|
||||
public final class EncryptedTempFilePackagePart extends PackagePart {
|
||||
private static final Logger LOG = LogManager.getLogger(EncryptedTempFilePackagePart.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(EncryptedTempFilePackagePart.class);
|
||||
|
||||
/**
|
||||
* Storage for the part data.
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package org.apache.poi.openxml4j.opc.internal;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
@ -39,7 +39,7 @@ import java.nio.file.Files;
|
||||
*/
|
||||
@Beta
|
||||
public final class TempFilePackagePart extends PackagePart {
|
||||
private static final Logger LOG = LogManager.getLogger(TempFilePackagePart.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TempFilePackagePart.class);
|
||||
|
||||
/**
|
||||
* Storage for the part data.
|
||||
|
@ -23,8 +23,8 @@ import java.io.OutputStream;
|
||||
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.openxml4j.opc.StreamHelper;
|
||||
@ -37,7 +37,7 @@ import org.w3c.dom.Document;
|
||||
* @see ContentTypeManager
|
||||
*/
|
||||
public class ZipContentTypeManager extends ContentTypeManager {
|
||||
private static final Logger LOG = LogManager.getLogger(ZipContentTypeManager.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ZipContentTypeManager.class);
|
||||
|
||||
/**
|
||||
* Delegate constructor to the super constructor.
|
||||
|
@ -25,8 +25,8 @@ import java.util.Objects;
|
||||
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.opc.PackageNamespaces;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
@ -49,7 +49,7 @@ import org.w3c.dom.Element;
|
||||
* Zip part marshaller. This marshaller is use to save any part in a zip stream.
|
||||
*/
|
||||
public final class ZipPartMarshaller implements PartMarshaller {
|
||||
private static final Logger LOG = LogManager.getLogger(ZipPartMarshaller.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ZipPartMarshaller.class);
|
||||
|
||||
/**
|
||||
* Save the specified part to the given stream.
|
||||
|
@ -22,8 +22,8 @@ import java.nio.file.Files;
|
||||
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.io.input.UnsynchronizedByteArrayInputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.temp.EncryptedTempData;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.util.TempFile;
|
||||
@ -36,7 +36,7 @@ import org.apache.poi.util.TempFile;
|
||||
* @see ZipInputStreamZipEntrySource#setThresholdBytesForTempFiles(int)
|
||||
*/
|
||||
/* package */ class ZipArchiveFakeEntry extends ZipArchiveEntry implements Closeable {
|
||||
private static final Logger LOG = LogManager.getLogger(ZipArchiveFakeEntry.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ZipArchiveFakeEntry.class);
|
||||
|
||||
// how large a single entry in a zip-file should become at max
|
||||
// can be overwritten via IOUtils.setByteArrayMaxOverride()
|
||||
|
@ -26,8 +26,8 @@ import java.util.Set;
|
||||
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.opc.internal.InvalidZipException;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.Removal;
|
||||
@ -42,7 +42,7 @@ import org.apache.poi.util.Removal;
|
||||
*/
|
||||
@Internal
|
||||
public class ZipSecureFile extends ZipFile {
|
||||
private static final Logger LOG = LogManager.getLogger(ZipSecureFile.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ZipSecureFile.class);
|
||||
/* package */ static double MIN_INFLATE_RATIO = 0.01d;
|
||||
/* package */ static final long DEFAULT_MAX_ENTRY_SIZE = 0xFFFFFFFFL;
|
||||
/* package */ static final long DEFAULT_MAX_FILE_COUNT = 1000;
|
||||
|
@ -38,8 +38,8 @@ import javax.xml.crypto.XMLStructure;
|
||||
import javax.xml.crypto.dsig.keyinfo.KeyInfo;
|
||||
import javax.xml.crypto.dsig.keyinfo.X509Data;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
|
||||
/**
|
||||
* JSR105 key selector implementation using the ds:KeyInfo data of the signature
|
||||
@ -47,7 +47,7 @@ import org.apache.logging.log4j.Logger;
|
||||
*/
|
||||
public class KeyInfoKeySelector extends KeySelector implements KeySelectorResult {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(KeyInfoKeySelector.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(KeyInfoKeySelector.class);
|
||||
|
||||
private final List<X509Certificate> certChain = new ArrayList<>();
|
||||
|
||||
|
@ -38,8 +38,8 @@ import javax.xml.crypto.XMLCryptoContext;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.openxml4j.opc.PackagePartName;
|
||||
@ -50,7 +50,7 @@ import org.apache.poi.openxml4j.opc.PackagingURIHelper;
|
||||
*/
|
||||
public class OOXMLURIDereferencer implements URIDereferencer {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(OOXMLURIDereferencer.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(OOXMLURIDereferencer.class);
|
||||
|
||||
private SignatureInfo signatureInfo;
|
||||
private URIDereferencer baseUriDereferencer;
|
||||
|
@ -52,8 +52,8 @@ import javax.xml.crypto.dsig.CanonicalizationMethod;
|
||||
import javax.xml.crypto.dsig.DigestMethod;
|
||||
import javax.xml.crypto.dsig.Transform;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.hpsf.ClassID;
|
||||
import org.apache.poi.poifs.crypt.HashAlgorithm;
|
||||
@ -107,7 +107,7 @@ public class SignatureConfig {
|
||||
|
||||
public static final String SIGNATURE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'";
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(SignatureConfig.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SignatureConfig.class);
|
||||
private static final String DigestMethod_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#sha224";
|
||||
private static final String DigestMethod_SHA384 = "http://www.w3.org/2001/04/xmldsig-more#sha384";
|
||||
private static final String XMLSEC_SANTUARIO = "org.apache.jcp.xml.dsig.internal.dom.XMLDSigRI";
|
||||
|
@ -62,8 +62,8 @@ import javax.xml.crypto.dsig.spec.C14NMethodParameterSpec;
|
||||
import org.apache.jcp.xml.dsig.internal.dom.DOMReference;
|
||||
import org.apache.jcp.xml.dsig.internal.dom.DOMSignedInfo;
|
||||
import org.apache.jcp.xml.dsig.internal.dom.DOMSubTreeData;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
@ -161,7 +161,7 @@ import org.w3c.dom.events.MutationEvent;
|
||||
*/
|
||||
public class SignatureInfo {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(SignatureInfo.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SignatureInfo.class);
|
||||
|
||||
private SignatureConfig signatureConfig;
|
||||
private OPCPackage opcPackage;
|
||||
|
@ -41,8 +41,8 @@ import javax.xml.xpath.XPath;
|
||||
import javax.xml.xpath.XPathConstants;
|
||||
import javax.xml.xpath.XPathExpressionException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
import org.apache.poi.ooxml.util.XPathHelper;
|
||||
@ -55,7 +55,7 @@ import org.w3c.dom.NodeList;
|
||||
import org.xml.sax.SAXException;
|
||||
|
||||
public class SignaturePart {
|
||||
private static final Logger LOG = LogManager.getLogger(SignaturePart.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SignaturePart.class);
|
||||
private static final String XMLSEC_VALIDATE_MANIFEST = "org.jcp.xml.dsig.validateManifests";
|
||||
private static final String XMLSEC_VALIDATE_SECURE = "org.apache.jcp.xml.dsig.secureValidation";
|
||||
|
||||
|
@ -40,8 +40,8 @@ import javax.xml.crypto.dsig.keyinfo.KeyValue;
|
||||
import javax.xml.crypto.dsig.keyinfo.X509Data;
|
||||
|
||||
import org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfo;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureConfig;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureInfo;
|
||||
import org.w3c.dom.Document;
|
||||
@ -54,7 +54,7 @@ import org.w3c.dom.NodeList;
|
||||
*/
|
||||
public class KeyInfoSignatureFacet implements SignatureFacet {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(KeyInfoSignatureFacet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(KeyInfoSignatureFacet.class);
|
||||
|
||||
@Override
|
||||
public void postSign(SignatureInfo signatureInfo, Document document)
|
||||
|
@ -54,8 +54,8 @@ import javax.xml.crypto.dsig.XMLSignatureFactory;
|
||||
|
||||
import com.microsoft.schemas.office.x2006.digsig.CTSignatureInfoV1;
|
||||
import com.microsoft.schemas.office.x2006.digsig.SignatureInfoV1Document;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.opc.ContentTypes;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
@ -82,7 +82,7 @@ import org.w3c.dom.Element;
|
||||
*/
|
||||
public class OOXMLSignatureFacet implements SignatureFacet {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(OOXMLSignatureFacet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(OOXMLSignatureFacet.class);
|
||||
private static final String ID_PACKAGE_OBJECT = "idPackageObject";
|
||||
|
||||
@Override
|
||||
|
@ -49,8 +49,8 @@ import javax.xml.crypto.dsig.XMLObject;
|
||||
import javax.xml.crypto.dsig.XMLSignatureException;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.CryptoFunctions;
|
||||
import org.apache.poi.poifs.crypt.HashAlgorithm;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureConfig;
|
||||
@ -94,7 +94,7 @@ import org.w3c.dom.Element;
|
||||
*/
|
||||
public class XAdESSignatureFacet implements SignatureFacet {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(XAdESSignatureFacet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XAdESSignatureFacet.class);
|
||||
|
||||
private static final String XADES_TYPE = "http://uri.etsi.org/01903#SignedProperties";
|
||||
|
||||
|
@ -46,8 +46,8 @@ import javax.xml.crypto.MarshalException;
|
||||
|
||||
import org.apache.commons.io.input.UnsynchronizedByteArrayInputStream;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureConfig;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureInfo;
|
||||
import org.apache.poi.poifs.crypt.dsig.services.RevocationData;
|
||||
@ -86,7 +86,7 @@ import org.w3c.dom.NodeList;
|
||||
*/
|
||||
public class XAdESXLSignatureFacet implements SignatureFacet {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(XAdESXLSignatureFacet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XAdESXLSignatureFacet.class);
|
||||
|
||||
private final CertificateFactory certificateFactory;
|
||||
|
||||
|
@ -50,8 +50,8 @@ import javax.xml.crypto.dsig.TransformService;
|
||||
import javax.xml.crypto.dsig.spec.TransformParameterSpec;
|
||||
|
||||
import org.apache.jcp.xml.dsig.internal.dom.ApacheNodeSetData;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
import org.apache.poi.util.SuppressForbidden;
|
||||
import org.apache.xml.security.signature.XMLSignatureInput;
|
||||
@ -78,7 +78,7 @@ public class RelationshipTransformService extends TransformService {
|
||||
|
||||
private final List<String> sourceIds;
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(RelationshipTransformService.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(RelationshipTransformService.class);
|
||||
|
||||
/**
|
||||
* Relationship Transform parameter specification class.
|
||||
|
@ -45,8 +45,8 @@ import java.util.stream.Stream;
|
||||
|
||||
import javax.security.auth.x500.X500Principal;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.CryptoFunctions;
|
||||
import org.apache.poi.poifs.crypt.HashAlgorithm;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureConfig;
|
||||
@ -86,7 +86,7 @@ import org.bouncycastle.tsp.TimeStampToken;
|
||||
*/
|
||||
public class TSPTimeStampService implements TimeStampService {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(TSPTimeStampService.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TSPTimeStampService.class);
|
||||
|
||||
/**
|
||||
* Maps the digest algorithm to corresponding OID value.
|
||||
|
@ -37,8 +37,8 @@ import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.dsig.SignatureConfig;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.util.RandomSingleton;
|
||||
@ -54,7 +54,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
|
||||
protected static final String BASIC_AUTH = "Authorization";
|
||||
protected static final String REDIRECT_LOCATION = "Location";
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(TimeStampSimpleHttpClient.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TimeStampSimpleHttpClient.class);
|
||||
|
||||
// how large a timestamp response is expected to be
|
||||
// can be overwritten via IOUtils.setByteArrayMaxOverride()
|
||||
|
@ -36,8 +36,8 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||
import org.apache.commons.io.output.CloseShieldOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.util.ZipEntrySource;
|
||||
import org.apache.poi.poifs.crypt.ChainingMode;
|
||||
import org.apache.poi.poifs.crypt.CipherAlgorithm;
|
||||
@ -53,7 +53,7 @@ import org.apache.poi.util.TempFile;
|
||||
*/
|
||||
@Beta
|
||||
public final class AesZipFileZipEntrySource implements ZipEntrySource {
|
||||
private static final Logger LOG = LogManager.getLogger(AesZipFileZipEntrySource.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(AesZipFileZipEntrySource.class);
|
||||
|
||||
private static final String PADDING = "PKCS5Padding";
|
||||
|
||||
|
@ -31,8 +31,8 @@ import javax.crypto.CipherOutputStream;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
|
||||
import org.apache.commons.io.output.CountingOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.poifs.crypt.ChainingMode;
|
||||
import org.apache.poi.poifs.crypt.CipherAlgorithm;
|
||||
import org.apache.poi.poifs.crypt.CryptoFunctions;
|
||||
@ -46,7 +46,7 @@ import org.apache.poi.util.TempFile;
|
||||
@Beta
|
||||
public class EncryptedTempData {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(EncryptedTempData.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(EncryptedTempData.class);
|
||||
private static final CipherAlgorithm cipherAlgorithm = CipherAlgorithm.aes128;
|
||||
private static final String PADDING = "PKCS5Padding";
|
||||
private final SecretKeySpec skeySpec;
|
||||
|
@ -23,8 +23,8 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.util.ZipEntrySource;
|
||||
import org.apache.poi.util.Beta;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
@ -35,7 +35,7 @@ import static org.apache.logging.log4j.util.Unbox.box;
|
||||
|
||||
@Beta
|
||||
public class SXSSFWorkbookWithCustomZipEntrySource extends SXSSFWorkbook {
|
||||
private static final Logger LOG = LogManager.getLogger(SXSSFWorkbookWithCustomZipEntrySource.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SXSSFWorkbookWithCustomZipEntrySource.class);
|
||||
|
||||
public SXSSFWorkbookWithCustomZipEntrySource() {
|
||||
super(20);
|
||||
|
@ -23,8 +23,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.util.CellReference;
|
||||
import org.apache.poi.util.Beta;
|
||||
import org.apache.poi.util.Internal;
|
||||
@ -47,7 +47,7 @@ import org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt;
|
||||
*/
|
||||
@Beta
|
||||
public abstract class XDDFChartData {
|
||||
private static final Logger LOGGER = LogManager.getLogger(XDDFChartData.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(XDDFChartData.class);
|
||||
|
||||
protected XDDFChart parent;
|
||||
protected List<Series> series;
|
||||
|
@ -27,8 +27,8 @@ import org.apache.batik.parser.LengthHandler;
|
||||
import org.apache.batik.parser.LengthParser;
|
||||
import org.apache.batik.parser.ParseException;
|
||||
import org.apache.batik.util.SVGConstants;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.util.Dimension2DDouble;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.w3c.dom.svg.SVGDocument;
|
||||
@ -39,7 +39,7 @@ import org.w3c.dom.svg.SVGSVGElement;
|
||||
*/
|
||||
@Internal
|
||||
public class SVGUserAgent extends UserAgentAdapter {
|
||||
private static final Logger LOG = LogManager.getLogger(SVGUserAgent.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SVGUserAgent.class);
|
||||
private Rectangle2D viewbox;
|
||||
|
||||
public SVGUserAgent() {
|
||||
|
@ -35,8 +35,8 @@ import java.util.OptionalLong;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocument;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
@ -74,7 +74,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.PresentationDocument
|
||||
@Beta
|
||||
public class XMLSlideShow extends POIXMLDocument
|
||||
implements SlideShow<XSLFShape, XSLFTextParagraph> {
|
||||
private static final Logger LOG = LogManager.getLogger(XMLSlideShow.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XMLSlideShow.class);
|
||||
//arbitrarily selected; may need to increase
|
||||
private static final int DEFAULT_MAX_RECORD_LENGTH = 1_000_000;
|
||||
private static int MAX_RECORD_LENGTH = DEFAULT_MAX_RECORD_LENGTH;
|
||||
|
@ -22,8 +22,8 @@ import java.awt.Color;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.sl.draw.DrawPaint;
|
||||
import org.apache.poi.sl.usermodel.AbstractColorStyle;
|
||||
@ -50,7 +50,7 @@ import org.openxmlformats.schemas.drawingml.x2006.main.CTSystemColor;
|
||||
@Beta
|
||||
@Internal
|
||||
public class XSLFColor {
|
||||
private static final Logger LOGGER = LogManager.getLogger(XSLFColor.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(XSLFColor.class);
|
||||
private static final QName VAL_ATTR = new QName("val");
|
||||
|
||||
private final XmlObject _xmlObject;
|
||||
|
@ -24,8 +24,8 @@ import java.awt.geom.Path2D;
|
||||
import java.awt.geom.PathIterator;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.sl.draw.geom.CustomGeometry;
|
||||
import org.apache.poi.sl.usermodel.FreeformShape;
|
||||
@ -57,7 +57,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTShapeNonVisual;
|
||||
public class XSLFFreeformShape extends XSLFAutoShape
|
||||
implements FreeformShape<XSLFShape,XSLFTextParagraph> {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFFreeformShape.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFFreeformShape.class);
|
||||
|
||||
/*package*/ XSLFFreeformShape(CTShape shape, XSLFSheet sheet) {
|
||||
super(shape, sheet);
|
||||
|
@ -27,8 +27,8 @@ import java.io.IOException;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
@ -55,7 +55,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTGroupShape;
|
||||
@Beta
|
||||
public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame<XSLFShape, XSLFTextParagraph> {
|
||||
private static final String DRAWINGML_CHART_URI = "http://schemas.openxmlformats.org/drawingml/2006/chart";
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFGraphicFrame.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFGraphicFrame.class);
|
||||
|
||||
/*package*/ XSLFGraphicFrame(CTGraphicalObjectFrame shape, XSLFSheet sheet){
|
||||
super(shape,sheet);
|
||||
|
@ -25,8 +25,8 @@ import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.sl.draw.DrawPictureShape;
|
||||
@ -55,7 +55,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTShape;
|
||||
@Beta
|
||||
public class XSLFGroupShape extends XSLFShape
|
||||
implements XSLFShapeContainer, GroupShape<XSLFShape,XSLFTextParagraph> {
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFGroupShape.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFGroupShape.class);
|
||||
|
||||
private final List<XSLFShape> _shapes;
|
||||
private final CTGroupShapeProperties _grpSpPr;
|
||||
|
@ -34,8 +34,8 @@ import javax.xml.namespace.QName;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.ooxml.util.XPathHelper;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
@ -69,7 +69,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTPictureNonVisual;
|
||||
@Beta
|
||||
public class XSLFPictureShape extends XSLFSimpleShape
|
||||
implements PictureShape<XSLFShape,XSLFTextParagraph> {
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFPictureShape.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFPictureShape.class);
|
||||
|
||||
private static final String MS_DML_NS = "http://schemas.microsoft.com/office/drawing/2010/main";
|
||||
private static final String MS_SVG_NS = "http://schemas.microsoft.com/office/drawing/2016/SVG/main";
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package org.apache.poi.xslf.usermodel;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.xmlbeans.XmlCursor;
|
||||
import org.apache.xmlbeans.XmlObject;
|
||||
@ -50,7 +50,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTBackgroundProperti
|
||||
*/
|
||||
@Internal
|
||||
/* package */ class XSLFPropertiesDelegate {
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFPropertiesDelegate.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFPropertiesDelegate.class);
|
||||
|
||||
|
||||
public static XSLFFillProperties getFillDelegate(XmlObject props) {
|
||||
|
@ -34,8 +34,8 @@ import java.util.Map;
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import com.zaxxer.sparsebits.SparseBitSet;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
@ -75,7 +75,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTShape;
|
||||
@Beta
|
||||
public abstract class XSLFSheet extends POIXMLDocumentPart
|
||||
implements XSLFShapeContainer, Sheet<XSLFShape,XSLFTextParagraph> {
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFSheet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFSheet.class);
|
||||
|
||||
private XSLFDrawing _drawing;
|
||||
private List<XSLFShape> _shapes;
|
||||
|
@ -22,8 +22,8 @@ package org.apache.poi.xslf.usermodel;
|
||||
import java.awt.Color;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.sl.draw.DrawPaint;
|
||||
@ -59,7 +59,7 @@ import org.openxmlformats.schemas.drawingml.x2006.main.*;
|
||||
public abstract class XSLFSimpleShape extends XSLFShape
|
||||
implements SimpleShape<XSLFShape,XSLFTextParagraph> {
|
||||
private static final CTOuterShadowEffect NO_SHADOW = CTOuterShadowEffect.Factory.newInstance();
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFSimpleShape.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFSimpleShape.class);
|
||||
|
||||
/* package */XSLFSimpleShape(XmlObject shape, XSLFSheet sheet) {
|
||||
super(shape,sheet);
|
||||
|
@ -27,8 +27,8 @@ import java.util.List;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.POIXMLUnits;
|
||||
import org.apache.poi.sl.draw.DrawFactory;
|
||||
import org.apache.poi.sl.draw.DrawTableShape;
|
||||
@ -54,7 +54,7 @@ import org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFra
|
||||
public class XSLFTable extends XSLFGraphicFrame implements Iterable<XSLFTableRow>,
|
||||
TableShape<XSLFShape,XSLFTextParagraph> {
|
||||
/* package */ static final String TABLE_URI = "http://schemas.openxmlformats.org/drawingml/2006/table";
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFTable.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFTable.class);
|
||||
|
||||
private final CTTable _table;
|
||||
private final List<XSLFTableRow> _rows;
|
||||
|
@ -19,8 +19,8 @@ package org.apache.poi.xslf.usermodel;
|
||||
import java.awt.Color;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.common.usermodel.fonts.FontCharset;
|
||||
import org.apache.poi.common.usermodel.fonts.FontFamily;
|
||||
import org.apache.poi.common.usermodel.fonts.FontGroup;
|
||||
@ -66,7 +66,7 @@ import org.openxmlformats.schemas.drawingml.x2006.main.impl.CTSRgbColorImpl;
|
||||
*/
|
||||
@Beta
|
||||
public class XSLFTextRun implements TextRun, HighlightColorSupport {
|
||||
private static final Logger LOG = LogManager.getLogger(XSLFTextRun.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSLFTextRun.class);
|
||||
|
||||
private final XmlObject _r;
|
||||
private final XSLFTextParagraph _p;
|
||||
|
@ -36,8 +36,8 @@ import java.util.Set;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.common.usermodel.GenericRecord;
|
||||
import org.apache.poi.poifs.filesystem.FileMagic;
|
||||
import org.apache.poi.sl.draw.Drawable;
|
||||
@ -50,7 +50,7 @@ import org.apache.poi.util.LocaleUtil;
|
||||
* An utility to convert slides of a .pptx slide show to a PNG image
|
||||
*/
|
||||
public final class PPTX2PNG {
|
||||
private static final Logger LOG = LogManager.getLogger(PPTX2PNG.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(PPTX2PNG.class);
|
||||
|
||||
private static final String INPUT_PAT_REGEX =
|
||||
"(?<slideno>[^|]+)\\|(?<format>[^|]+)\\|(?<basename>.+)\\.(?<ext>[^.]++)";
|
||||
|
@ -28,8 +28,8 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import com.zaxxer.sparsebits.SparseBitSet;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
@ -58,7 +58,7 @@ import org.apache.poi.xssf.usermodel.XSSFRelation;
|
||||
*/
|
||||
public class XSSFBReader extends XSSFReader {
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger(XSSFBReader.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(XSSFBReader.class);
|
||||
private static final Set<String> WORKSHEET_RELS =
|
||||
Collections.unmodifiableSet(new HashSet<>(
|
||||
Arrays.asList(
|
||||
|
@ -31,8 +31,8 @@ import java.util.Set;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
@ -70,7 +70,7 @@ public class XSSFReader {
|
||||
XSSFRelation.CHARTSHEET.getRelation(),
|
||||
XSSFRelation.MACRO_SHEET_XML.getRelation())
|
||||
));
|
||||
private static final Logger LOGGER = LogManager.getLogger(XSSFReader.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(XSSFReader.class);
|
||||
|
||||
protected OPCPackage pkg;
|
||||
protected PackagePart workbookPart;
|
||||
|
@ -22,8 +22,8 @@ import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Queue;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.usermodel.BuiltinFormats;
|
||||
import org.apache.poi.ss.usermodel.DataFormatter;
|
||||
import org.apache.poi.ss.usermodel.RichTextString;
|
||||
@ -48,7 +48,7 @@ import org.xml.sax.helpers.DefaultHandler;
|
||||
* you need to implement for reading information from a file.
|
||||
*/
|
||||
public class XSSFSheetXMLHandler extends DefaultHandler {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFSheetXMLHandler.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFSheetXMLHandler.class);
|
||||
|
||||
/**
|
||||
* These are the different kinds of cells we support.
|
||||
|
@ -21,8 +21,8 @@ import java.io.InputStream;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.ss.usermodel.DataFormatter;
|
||||
@ -46,7 +46,7 @@ import org.xml.sax.SAXException;
|
||||
*/
|
||||
public class XSSFBEventBasedExcelExtractor extends XSSFEventBasedExcelExtractor {
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger(XSSFBEventBasedExcelExtractor.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(XSSFBEventBasedExcelExtractor.class);
|
||||
|
||||
public static final List<XSSFRelation> SUPPORTED_TYPES = Collections.singletonList(
|
||||
XSSFRelation.XLSB_BINARY_WORKBOOK
|
||||
|
@ -25,8 +25,8 @@ import java.util.Map;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocument;
|
||||
import org.apache.poi.ooxml.POIXMLProperties;
|
||||
import org.apache.poi.ooxml.POIXMLProperties.CoreProperties;
|
||||
@ -63,7 +63,7 @@ import org.xml.sax.XMLReader;
|
||||
public class XSSFEventBasedExcelExtractor
|
||||
implements POIXMLTextExtractor, ExcelExtractor {
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger(XSSFEventBasedExcelExtractor.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(XSSFEventBasedExcelExtractor.class);
|
||||
|
||||
protected final OPCPackage container;
|
||||
protected final POIXMLProperties properties;
|
||||
|
@ -38,8 +38,8 @@ import javax.xml.validation.Schema;
|
||||
import javax.xml.validation.SchemaFactory;
|
||||
import javax.xml.validation.Validator;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
import org.apache.poi.ss.usermodel.CellType;
|
||||
import org.apache.poi.ss.usermodel.DateUtil;
|
||||
@ -79,7 +79,7 @@ import org.xml.sax.SAXException;
|
||||
* </ul>
|
||||
*/
|
||||
public class XSSFExportToXml implements Comparator<String>{
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFExportToXml.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFExportToXml.class);
|
||||
|
||||
|
||||
@FunctionalInterface
|
||||
|
@ -35,8 +35,8 @@ import javax.xml.xpath.XPath;
|
||||
import javax.xml.xpath.XPathConstants;
|
||||
import javax.xml.xpath.XPathExpressionException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
import org.apache.poi.ooxml.util.XPathHelper;
|
||||
import org.apache.poi.ss.usermodel.DateUtil;
|
||||
@ -72,7 +72,7 @@ public class XSSFImportFromXML {
|
||||
|
||||
private final XSSFMap _map;
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFImportFromXML.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFImportFromXML.class);
|
||||
|
||||
public XSSFImportFromXML(XSSFMap map) {
|
||||
_map = map;
|
||||
|
@ -21,8 +21,8 @@ import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.util.Beta;
|
||||
import org.apache.poi.util.NotImplemented;
|
||||
@ -39,7 +39,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
*/
|
||||
@Beta
|
||||
public class DeferredSXSSFWorkbook extends SXSSFWorkbook {
|
||||
private static final Logger LOG = LogManager.getLogger(DeferredSXSSFWorkbook.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(DeferredSXSSFWorkbook.class);
|
||||
|
||||
public DeferredSXSSFWorkbook() {
|
||||
this(null);
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package org.apache.poi.xssf.streaming;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.formula.EvaluationCell;
|
||||
import org.apache.poi.ss.formula.IStabilityClassifier;
|
||||
import org.apache.poi.ss.formula.WorkbookEvaluator;
|
||||
@ -36,7 +36,7 @@ import static org.apache.logging.log4j.util.Unbox.box;
|
||||
* lookup cells within the current Window.
|
||||
*/
|
||||
public final class SXSSFFormulaEvaluator extends BaseXSSFFormulaEvaluator {
|
||||
private static final Logger LOG = LogManager.getLogger(SXSSFFormulaEvaluator.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SXSSFFormulaEvaluator.class);
|
||||
|
||||
private final SXSSFWorkbook wb;
|
||||
|
||||
|
@ -21,8 +21,8 @@ import java.awt.Dimension;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.ss.usermodel.Picture;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
@ -51,7 +51,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCol;
|
||||
* The main change is to access the rows in the SXSSF sheet, not the always empty rows in the XSSF sheet when checking the row heights.
|
||||
*/
|
||||
public final class SXSSFPicture implements Picture {
|
||||
private static final Logger LOG = LogManager.getLogger(SXSSFPicture.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SXSSFPicture.class);
|
||||
/**
|
||||
* Column width measured as the number of characters of the maximum digit width of the
|
||||
* numbers 0, 1, 2, ..., 9 as rendered in the normal style's font. There are 4 pixels of margin
|
||||
|
@ -21,8 +21,8 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.*;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.SpreadsheetVersion;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellAddress;
|
||||
@ -43,7 +43,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet;
|
||||
* Streaming version of XSSFSheet implementing the "BigGridDemo" strategy.
|
||||
*/
|
||||
public class SXSSFSheet implements Sheet, OoxmlSheetExtensions {
|
||||
private static final Logger LOG = LogManager.getLogger(SXSSFSheet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SXSSFSheet.class);
|
||||
|
||||
/*package*/ final XSSFSheet _sh;
|
||||
protected final SXSSFWorkbook _workbook;
|
||||
|
@ -40,8 +40,8 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream;
|
||||
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.openxml4j.util.ZipArchiveThresholdInputStream;
|
||||
import org.apache.poi.openxml4j.util.ZipEntrySource;
|
||||
@ -113,7 +113,7 @@ public class SXSSFWorkbook implements Workbook {
|
||||
* via {@link SXSSFSheet#getRow} anymore.
|
||||
*/
|
||||
public static final int DEFAULT_WINDOW_SIZE = 100;
|
||||
private static final Logger LOG = LogManager.getLogger(SXSSFWorkbook.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SXSSFWorkbook.class);
|
||||
|
||||
protected final XSSFWorkbook _wb;
|
||||
|
||||
|
@ -33,8 +33,8 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.Iterator;
|
||||
import java.util.PrimitiveIterator;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.apache.poi.ss.usermodel.CellType;
|
||||
@ -54,7 +54,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.STCellType;
|
||||
* so that it was renamed to "SheetDataWriter"
|
||||
*/
|
||||
public class SheetDataWriter implements Closeable {
|
||||
private static final Logger LOG = LogManager.getLogger(SheetDataWriter.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(SheetDataWriter.class);
|
||||
|
||||
private final File _fd;
|
||||
protected final Writer _out;
|
||||
|
@ -26,8 +26,8 @@ import java.io.OutputStreamWriter;
|
||||
import java.io.Writer;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.util.Beta;
|
||||
|
||||
/**
|
||||
@ -37,7 +37,7 @@ import org.apache.poi.util.Beta;
|
||||
*/
|
||||
@Beta
|
||||
public class StreamingSheetWriter extends SheetDataWriter {
|
||||
private static final Logger LOG = LogManager.getLogger(StreamingSheetWriter.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(StreamingSheetWriter.class);
|
||||
private boolean closed = false;
|
||||
|
||||
public StreamingSheetWriter() throws IOException {
|
||||
|
@ -29,8 +29,8 @@ import java.util.Spliterator;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
@ -77,7 +77,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet;
|
||||
* Represents a SpreadsheetML drawing
|
||||
*/
|
||||
public final class XSSFDrawing extends POIXMLDocumentPart implements Drawing<XSSFShape> {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFDrawing.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFDrawing.class);
|
||||
|
||||
/**
|
||||
* Root element of the SpreadsheetML Drawing part
|
||||
|
@ -22,8 +22,8 @@ import java.io.InputStream;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
@ -51,7 +51,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTOleObject;
|
||||
* Represents binary object (i.e. OLE) data stored in the file. Eg. A GIF, JPEG etc...
|
||||
*/
|
||||
public class XSSFObjectData extends XSSFSimpleShape implements ObjectData {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFObjectData.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFObjectData.class);
|
||||
|
||||
/**
|
||||
* A default instance of CTShape used for creating new shapes.
|
||||
|
@ -21,8 +21,8 @@ import java.awt.Dimension;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.openxml4j.opc.PackageRelationship;
|
||||
import org.apache.poi.ss.usermodel.Picture;
|
||||
@ -45,7 +45,7 @@ import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTPictureNo
|
||||
* Represents a picture shape in a SpreadsheetML drawing.
|
||||
*/
|
||||
public final class XSSFPicture extends XSSFShape implements Picture {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFPicture.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFPicture.class);
|
||||
|
||||
/*
|
||||
* Column width measured as the number of characters of the maximum digit width of the
|
||||
|
@ -30,8 +30,8 @@ import javax.xml.namespace.QName;
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import javax.xml.stream.XMLStreamReader;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
import org.apache.poi.ooxml.POIXMLException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
@ -76,7 +76,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.*;
|
||||
* </p>
|
||||
*/
|
||||
public class XSSFSheet extends POIXMLDocumentPart implements Sheet, OoxmlSheetExtensions {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFSheet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFSheet.class);
|
||||
|
||||
private static final double DEFAULT_ROW_HEIGHT = 15.0;
|
||||
private static final double DEFAULT_MARGIN_HEADER = 0.3;
|
||||
|
@ -28,8 +28,8 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ConcurrentSkipListMap;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.ss.SpreadsheetVersion;
|
||||
@ -58,7 +58,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.TableDocument;
|
||||
*/
|
||||
public class XSSFTable extends POIXMLDocumentPart implements Table {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFTable.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFTable.class);
|
||||
|
||||
private CTTable ctTable;
|
||||
private transient List<XSSFXmlColumnPr> xmlColumnPrs;
|
||||
|
@ -22,8 +22,8 @@ import java.util.EnumMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.usermodel.DifferentialStyleProvider;
|
||||
import org.apache.poi.ss.usermodel.TableStyle;
|
||||
import org.apache.poi.ss.usermodel.TableStyleType;
|
||||
@ -41,7 +41,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleElement;
|
||||
* Also used for built-in styles via dummy XML generated from presetTableStyles.xml.
|
||||
*/
|
||||
public class XSSFTableStyle implements TableStyle {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFTableStyle.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFTableStyle.class);
|
||||
|
||||
private final String name;
|
||||
private final int index;
|
||||
|
@ -44,8 +44,8 @@ import javax.xml.namespace.QName;
|
||||
import org.apache.commons.collections4.ListValuedMap;
|
||||
import org.apache.commons.collections4.multimap.ArrayListValuedHashMap;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hpsf.ClassIDPredefined;
|
||||
import org.apache.poi.ooxml.HyperlinkRelationship;
|
||||
import org.apache.poi.ooxml.POIXMLDocument;
|
||||
@ -194,7 +194,7 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Date1904Su
|
||||
*/
|
||||
private List<XSSFPictureData> pictures;
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFWorkbook.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFWorkbook.class);
|
||||
|
||||
/**
|
||||
* cached instance of XSSFCreationHelper for this workbook
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package org.apache.poi.xssf.usermodel.helpers;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.formula.FormulaShifter;
|
||||
import org.apache.poi.ss.formula.FormulaParser;
|
||||
import org.apache.poi.ss.formula.FormulaType;
|
||||
@ -44,7 +44,7 @@ import static org.apache.logging.log4j.util.Unbox.box;
|
||||
*/
|
||||
@Internal
|
||||
/*private*/ final class XSSFRowColShifter {
|
||||
private static final Logger LOG = LogManager.getLogger(XSSFRowColShifter.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XSSFRowColShifter.class);
|
||||
|
||||
private XSSFRowColShifter() { /*no instances for static classes*/}
|
||||
|
||||
|
@ -38,8 +38,8 @@ import java.util.Optional;
|
||||
import java.util.Spliterator;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.common.usermodel.PictureType;
|
||||
import org.apache.poi.ooxml.POIXMLDocument;
|
||||
import org.apache.poi.ooxml.POIXMLDocumentPart;
|
||||
@ -103,7 +103,7 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.StylesDocument;
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class XWPFDocument extends POIXMLDocument implements Document, IBody {
|
||||
private static final Logger LOG = LogManager.getLogger(XWPFDocument.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(XWPFDocument.class);
|
||||
|
||||
protected List<XWPFFooter> footers = new ArrayList<>();
|
||||
protected List<XWPFHeader> headers = new ArrayList<>();
|
||||
|
@ -24,15 +24,15 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.OpenXML4JTestDataSamples;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public final class TestListParts {
|
||||
private static final Logger LOG = LogManager.getLogger(TestListParts.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestListParts.class);
|
||||
|
||||
private TreeMap<PackagePartName, String> expectedValues;
|
||||
|
||||
|
@ -59,8 +59,8 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
|
||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||
import org.apache.commons.io.output.CountingOutputStream;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.POIDataSamples;
|
||||
import org.apache.poi.POITestCase;
|
||||
@ -100,7 +100,7 @@ import org.xml.sax.SAXException;
|
||||
import org.xml.sax.SAXParseException;
|
||||
|
||||
public final class TestPackage {
|
||||
private static final Logger LOG = LogManager.getLogger(TestPackage.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestPackage.class);
|
||||
private static final String CONTENT_EXT_PROPS = "application/vnd.openxmlformats-officedocument.extended-properties+xml";
|
||||
private static final POIDataSamples xlsSamples = POIDataSamples.getSpreadSheetInstance();
|
||||
|
||||
|
@ -30,8 +30,8 @@ import java.net.URI;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.openxml4j.OpenXML4JTestDataSamples;
|
||||
import org.apache.poi.xssf.usermodel.XSSFRelation;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -45,7 +45,7 @@ class TestRelationships {
|
||||
private static final String SHEET_WITH_COMMENTS =
|
||||
"/xl/worksheets/sheet1.xml";
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(TestRelationships.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestRelationships.class);
|
||||
|
||||
/**
|
||||
* Test relationships are correctly loaded. This at the moment fails (as of r499)
|
||||
|
@ -62,8 +62,8 @@ import javax.xml.crypto.dsig.dom.DOMSignContext;
|
||||
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.jcp.xml.dsig.internal.dom.DOMSignedInfo;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.POIDataSamples;
|
||||
import org.apache.poi.POITestCase;
|
||||
@ -126,7 +126,7 @@ import org.w3.x2000.x09.xmldsig.SignatureDocument;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
class TestSignatureInfo {
|
||||
private static final Logger LOG = LogManager.getLogger(TestSignatureInfo.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestSignatureInfo.class);
|
||||
private static final POIDataSamples testdata = POIDataSamples.getXmlDSignInstance();
|
||||
private static final String STORE_PASS = "test";
|
||||
|
||||
|
@ -34,8 +34,8 @@ import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.EmptyFileException;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.POIDataSamples;
|
||||
@ -62,7 +62,7 @@ public final class TestWorkbookFactory {
|
||||
private static final String[] xlsx_protected = new String[]{"protected_passtika.xlsx", "tika"};
|
||||
private static final String txt = "SampleSS.txt";
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger(TestWorkbookFactory.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(TestWorkbookFactory.class);
|
||||
|
||||
/**
|
||||
* Closes the sample workbook read in from filename.
|
||||
|
@ -29,8 +29,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hssf.HSSFTestDataSamples;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.openxml4j.opc.PackageAccess;
|
||||
@ -59,7 +59,7 @@ import org.junit.jupiter.params.provider.MethodSource;
|
||||
*
|
||||
*/
|
||||
public final class TestFormulaEvaluatorOnXSSF {
|
||||
private static final Logger LOG = LogManager.getLogger(TestFormulaEvaluatorOnXSSF.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestFormulaEvaluatorOnXSSF.class);
|
||||
|
||||
private static XSSFWorkbook workbook;
|
||||
private static Sheet sheet;
|
||||
|
@ -28,8 +28,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.formula.eval.ErrorEval;
|
||||
import org.apache.poi.ss.formula.functions.BaseTestNumeric;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
@ -47,7 +47,7 @@ import org.junit.jupiter.params.provider.MethodSource;
|
||||
|
||||
public final class TestMatrixFormulasFromXMLSpreadsheet {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(TestMatrixFormulasFromXMLSpreadsheet.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestMatrixFormulasFromXMLSpreadsheet.class);
|
||||
|
||||
private static XSSFWorkbook workbook;
|
||||
private static Sheet sheet;
|
||||
|
@ -31,8 +31,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hssf.HSSFTestDataSamples;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.openxml4j.opc.PackageAccess;
|
||||
@ -52,7 +52,7 @@ import org.junit.jupiter.params.provider.MethodSource;
|
||||
* Tests formulas for multi sheet reference (i.e. SUM(Sheet1:Sheet5!A1))
|
||||
*/
|
||||
public final class TestMultiSheetFormulaEvaluatorOnXSSF {
|
||||
private static final Logger LOG = LogManager.getLogger(TestMultiSheetFormulaEvaluatorOnXSSF.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestMultiSheetFormulaEvaluatorOnXSSF.class);
|
||||
|
||||
private static XSSFWorkbook workbook;
|
||||
private static Sheet sheet;
|
||||
|
@ -49,8 +49,8 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||
import org.apache.commons.io.output.NullOutputStream;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.POIDataSamples;
|
||||
import org.apache.poi.common.usermodel.HyperlinkType;
|
||||
import org.apache.poi.hssf.HSSFITestDataProvider;
|
||||
@ -137,7 +137,7 @@ import org.xml.sax.SAXParseException;
|
||||
import org.xml.sax.XMLReader;
|
||||
|
||||
public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||
private static final Logger LOG = LogManager.getLogger(TestXSSFBugs.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestXSSFBugs.class);
|
||||
|
||||
public TestXSSFBugs() {
|
||||
super(XSSFITestDataProvider.instance);
|
||||
|
@ -23,8 +23,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.xssf.XSSFTestDataSamples;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCol;
|
||||
@ -43,7 +43,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCols;
|
||||
*/
|
||||
class TestXSSFColGrouping {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(TestXSSFColGrouping.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestXSSFColGrouping.class);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -22,15 +22,15 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.xssf.XSSFTestDataSamples;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class TestXSSFSheetMergeRegions {
|
||||
|
||||
private static final Logger LOG = LogManager.getLogger(TestXSSFSheetMergeRegions.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TestXSSFSheetMergeRegions.class);
|
||||
|
||||
@Test
|
||||
void testMergeRegionsSpeed() throws IOException {
|
||||
|
@ -24,8 +24,8 @@ import java.util.List;
|
||||
import java.util.stream.StreamSupport;
|
||||
|
||||
import org.apache.commons.io.input.UnsynchronizedByteArrayInputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.extractor.ExtractorFactory;
|
||||
import org.apache.poi.extractor.ExtractorProvider;
|
||||
import org.apache.poi.extractor.POIOLE2TextExtractor;
|
||||
@ -58,7 +58,7 @@ import org.apache.poi.sl.usermodel.SlideShowFactory;
|
||||
*/
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public class OLE2ScratchpadExtractorFactory implements ExtractorProvider {
|
||||
private static final Logger LOG = LogManager.getLogger(OLE2ScratchpadExtractorFactory.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(OLE2ScratchpadExtractorFactory.class);
|
||||
|
||||
private static final String[] OUTLOOK_ENTRY_NAMES = {
|
||||
// message bodies, saved as plain text (PtypString)
|
||||
|
@ -19,8 +19,8 @@ package org.apache.poi.hdgf.chunks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hdgf.chunks.ChunkFactory.CommandDefinition;
|
||||
import org.apache.poi.util.LittleEndian;
|
||||
|
||||
@ -31,7 +31,7 @@ import static org.apache.logging.log4j.util.Unbox.box;
|
||||
*/
|
||||
public final class Chunk {
|
||||
/** For logging warnings about the structure of the file */
|
||||
private static final Logger LOG = LogManager.getLogger(Chunk.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(Chunk.class);
|
||||
|
||||
/**
|
||||
* The contents of the chunk, excluding the header,
|
||||
|
@ -26,8 +26,8 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.util.LocaleUtil;
|
||||
|
||||
@ -61,7 +61,7 @@ public final class ChunkFactory {
|
||||
"/org/apache/poi/hdgf/chunks_parse_cmds.tbl";
|
||||
|
||||
/** For logging problems we spot with the file */
|
||||
private static final Logger LOG = LogManager.getLogger(ChunkFactory.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ChunkFactory.class);
|
||||
|
||||
/**
|
||||
* @param length the max record length allowed for ChunkFactory
|
||||
|
@ -19,8 +19,8 @@ package org.apache.poi.hdgf.streams;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hdgf.chunks.Chunk;
|
||||
import org.apache.poi.hdgf.chunks.ChunkFactory;
|
||||
import org.apache.poi.hdgf.chunks.ChunkHeader;
|
||||
@ -29,7 +29,7 @@ import org.apache.poi.hdgf.pointers.Pointer;
|
||||
import static org.apache.logging.log4j.util.Unbox.box;
|
||||
|
||||
public final class ChunkStream extends Stream {
|
||||
private static final Logger LOG = LogManager.getLogger(ChunkStream.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(ChunkStream.class);
|
||||
|
||||
private final ChunkFactory chunkFactory;
|
||||
/** All the Chunks we contain */
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
package org.apache.poi.hdgf.streams;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hdgf.chunks.ChunkFactory;
|
||||
import org.apache.poi.hdgf.pointers.Pointer;
|
||||
import org.apache.poi.hdgf.pointers.PointerFactory;
|
||||
@ -28,7 +28,7 @@ import org.apache.poi.hdgf.pointers.PointerFactory;
|
||||
* other data too.
|
||||
*/
|
||||
public class PointerContainingStream extends Stream { // TODO - instantiable superclass
|
||||
private static final Logger LOG = LogManager.getLogger(PointerContainingStream.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(PointerContainingStream.class);
|
||||
|
||||
private static final int MAX_CHILDREN_NESTING = 500;
|
||||
|
||||
|
@ -31,8 +31,8 @@ import java.util.Map;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.common.usermodel.GenericRecord;
|
||||
import org.apache.poi.hemf.draw.HemfGraphics;
|
||||
import org.apache.poi.hemf.draw.HemfGraphics.EmfRenderState;
|
||||
@ -55,7 +55,7 @@ import org.apache.poi.util.RecordFormatException;
|
||||
*/
|
||||
@Internal
|
||||
public class HemfComment {
|
||||
private static final Logger LOG = LogManager.getLogger(HemfComment.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(HemfComment.class);
|
||||
|
||||
public enum HemfCommentRecordType {
|
||||
emfGeneric(-1, EmfCommentDataGeneric::new, false),
|
||||
|
@ -23,8 +23,8 @@ import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hmef.Attachment;
|
||||
import org.apache.poi.hmef.HMEFMessage;
|
||||
import org.apache.poi.hpsf.Filetime;
|
||||
@ -42,7 +42,7 @@ import org.apache.poi.util.LocaleUtil;
|
||||
* @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 final Logger LOG = LogManager.getLogger(MAPIDateAttribute.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(MAPIDateAttribute.class);
|
||||
private final Date data;
|
||||
|
||||
/**
|
||||
|
@ -19,8 +19,8 @@ package org.apache.poi.hmef.attribute;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hmef.Attachment;
|
||||
import org.apache.poi.hmef.HMEFMessage;
|
||||
import org.apache.poi.hsmf.datatypes.MAPIProperty;
|
||||
@ -32,7 +32,7 @@ import org.apache.poi.util.StringUtil;
|
||||
* to a {@link HMEFMessage} or one of its {@link Attachment}s.
|
||||
*/
|
||||
public final class MAPIStringAttribute extends MAPIAttribute {
|
||||
private static final Logger LOG = LogManager.getLogger(MAPIStringAttribute.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(MAPIStringAttribute.class);
|
||||
private static final String CODEPAGE = "CP1252";
|
||||
private final String data;
|
||||
|
||||
|
@ -26,8 +26,8 @@ import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hmef.Attachment;
|
||||
import org.apache.poi.hmef.HMEFMessage;
|
||||
import org.apache.poi.hpsf.Filetime;
|
||||
@ -39,7 +39,7 @@ import org.apache.poi.util.LocaleUtil;
|
||||
* or one of its {@link Attachment}s.
|
||||
*/
|
||||
public final class TNEFDateAttribute extends TNEFAttribute {
|
||||
private static final Logger LOG = LogManager.getLogger(TNEFDateAttribute.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TNEFDateAttribute.class);
|
||||
private final Date data;
|
||||
|
||||
/**
|
||||
|
@ -20,8 +20,8 @@ package org.apache.poi.hmef.attribute;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hmef.Attachment;
|
||||
import org.apache.poi.hmef.HMEFMessage;
|
||||
import org.apache.poi.util.StringUtil;
|
||||
@ -31,7 +31,7 @@ import org.apache.poi.util.StringUtil;
|
||||
* or one of its {@link Attachment}s.
|
||||
*/
|
||||
public final class TNEFStringAttribute extends TNEFAttribute {
|
||||
private static final Logger LOG = LogManager.getLogger(TNEFStringAttribute.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TNEFStringAttribute.class);
|
||||
private final String data;
|
||||
|
||||
/**
|
||||
|
@ -19,8 +19,8 @@ package org.apache.poi.hpbf.model;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hpbf.model.qcbits.QCBit;
|
||||
import org.apache.poi.hpbf.model.qcbits.QCPLCBit;
|
||||
import org.apache.poi.hpbf.model.qcbits.QCTextBit;
|
||||
@ -34,7 +34,7 @@ import org.apache.poi.util.LocaleUtil;
|
||||
* Read Quill Contents (/Quill/QuillSub/CONTENTS) from an HPBF (Publisher .pub) document
|
||||
*/
|
||||
public final class QuillContents extends HPBFPart {
|
||||
private static final Logger LOG = LogManager.getLogger(QuillContents.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(QuillContents.class);
|
||||
|
||||
private static final String[] PATH = { "Quill", "QuillSub", "CONTENTS", };
|
||||
private final QCBit[] bits;
|
||||
|
@ -28,8 +28,8 @@ import java.util.zip.InflaterInputStream;
|
||||
|
||||
import org.apache.commons.io.input.UnsynchronizedByteArrayInputStream;
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ddf.EscherBSERecord;
|
||||
import org.apache.poi.ddf.EscherContainerRecord;
|
||||
import org.apache.poi.hslf.exceptions.HSLFException;
|
||||
@ -44,7 +44,7 @@ import org.apache.poi.util.Units;
|
||||
* Represents Macintosh PICT picture data.
|
||||
*/
|
||||
public final class PICT extends Metafile {
|
||||
private static final Logger LOG = LogManager.getLogger(PICT.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(PICT.class);
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link HSLFSlideShow#addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType)} or one of its overloads to create new
|
||||
|
@ -20,8 +20,8 @@ package org.apache.poi.hslf.model;
|
||||
import java.io.IOException;
|
||||
import java.util.ServiceLoader;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ddf.AbstractEscherOptRecord;
|
||||
import org.apache.poi.ddf.EscherComplexProperty;
|
||||
import org.apache.poi.ddf.EscherPropertyTypes;
|
||||
@ -42,7 +42,7 @@ public class HSLFMetroShape<
|
||||
S extends Shape<S,P>,
|
||||
P extends TextParagraph<S,P,? extends TextRun>
|
||||
> {
|
||||
private static final Logger LOGGER = LogManager.getLogger(HSLFMetroShape.class);
|
||||
private static final Logger LOGGER = PoiLogManager.getLogger(HSLFMetroShape.class);
|
||||
|
||||
private final HSLFShape shape;
|
||||
|
||||
|
@ -22,8 +22,8 @@ import static org.apache.poi.util.GenericRecordUtil.getBitsAsString;
|
||||
import java.util.Map;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.logging.log4j.message.SimpleMessage;
|
||||
import org.apache.poi.util.GenericRecordUtil;
|
||||
|
||||
@ -35,7 +35,7 @@ import org.apache.poi.util.GenericRecordUtil;
|
||||
* (but related) properties
|
||||
*/
|
||||
public abstract class BitMaskTextProp extends TextProp {
|
||||
protected static final Logger LOG = LogManager.getLogger(BitMaskTextProp.class);
|
||||
protected static final Logger LOG = PoiLogManager.getLogger(BitMaskTextProp.class);
|
||||
|
||||
private final String[] subPropNames;
|
||||
private final int[] subPropMasks;
|
||||
|
@ -29,8 +29,8 @@ import java.util.Objects;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.common.Duplicatable;
|
||||
import org.apache.poi.common.usermodel.GenericRecord;
|
||||
import org.apache.poi.hslf.exceptions.HSLFException;
|
||||
@ -45,7 +45,7 @@ import org.apache.poi.util.LittleEndian;
|
||||
* properties, and the indent level if required.
|
||||
*/
|
||||
public class TextPropCollection implements GenericRecord, Duplicatable {
|
||||
private static final Logger LOG = LogManager.getLogger(TextPropCollection.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(TextPropCollection.class);
|
||||
|
||||
/** All the different kinds of paragraph properties we might handle */
|
||||
private static final TextProp[] paragraphTextPropTypes = {
|
||||
|
@ -29,8 +29,8 @@ import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import org.apache.commons.io.output.UnsynchronizedByteArrayOutputStream;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.hslf.exceptions.CorruptPowerPointFileException;
|
||||
import org.apache.poi.hslf.exceptions.OldPowerPointFormatException;
|
||||
import org.apache.poi.poifs.filesystem.DirectoryNode;
|
||||
@ -47,7 +47,7 @@ import org.apache.poi.util.StringUtil;
|
||||
* document. As such, it has to be treated specially
|
||||
*/
|
||||
public class CurrentUserAtom {
|
||||
private static final Logger LOG = LogManager.getLogger(CurrentUserAtom.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(CurrentUserAtom.class);
|
||||
|
||||
/** Standard Atom header */
|
||||
private static final byte[] atomHeader = new byte[] { 0, 0, -10, 15 };
|
||||
|
@ -20,8 +20,8 @@ package org.apache.poi.hslf.record;
|
||||
import java.util.Map;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.poi.ddf.EscherRecord;
|
||||
import org.apache.poi.ddf.EscherRecordFactory;
|
||||
import org.apache.poi.ddf.EscherSerializationListener;
|
||||
@ -34,7 +34,7 @@ import org.apache.poi.util.LittleEndian;
|
||||
* the slide layout as specified in the SlideAtom record.
|
||||
*/
|
||||
public class EscherPlaceholder extends EscherRecord {
|
||||
private static final Logger LOG = LogManager.getLogger(EscherPlaceholder.class);
|
||||
private static final Logger LOG = PoiLogManager.getLogger(EscherPlaceholder.class);
|
||||
|
||||
public static final short RECORD_ID = RecordTypes.OEPlaceholderAtom.typeID;
|
||||
public static final String RECORD_DESCRIPTION = "msofbtClientTextboxPlaceholder";
|
||||
|
@ -23,8 +23,8 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.poi.logging.PoiLogManager;
|
||||
import org.apache.logging.log4j.message.StringFormattedMessage;
|
||||
import org.apache.poi.common.usermodel.GenericRecord;
|
||||
import org.apache.poi.hslf.exceptions.CorruptPowerPointFileException;
|
||||
@ -43,7 +43,7 @@ import static org.apache.logging.log4j.util.Unbox.box;
|
||||
public abstract class Record implements GenericRecord
|
||||
{
|
||||
// For logging
|
||||
protected static final Logger LOG = LogManager.getLogger(Record.class);
|
||||
protected static final Logger LOG = PoiLogManager.getLogger(Record.class);
|
||||
|
||||
/**
|
||||
* Is this record type an Atom record (only has data),
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user