import org.apache.poi.ss.usermodel.BuiltinFormats;
import org.apache.poi.ss.usermodel.DataFormat;
-import org.apache.poi.util.Removal;
import org.apache.poi.xssf.model.StylesTable;
/**
if(fmt == null) fmt = BuiltinFormats.getBuiltinFormat(index);
return fmt;
}
- /**
- * get the format string that matches the given format index
- * @param index of a format
- * @return string represented at index of format or <code>null</code> if there is not a format at that index
- *
- * @deprecated POI 3.16 beta 1 - use {@link #getFormat(short)} instead
- */
- @Removal(version="3.18")
- public String getFormat(int index) {
- return getFormat((short)index);
- }
/**
* Add a number format with a specific ID into the number format style table.
+++ /dev/null
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-package org.apache.poi.xssf.util;
-
-import java.io.InputStream;
-
-import org.apache.poi.util.Internal;
-import org.apache.poi.util.Removal;
-import org.apache.poi.util.ReplacingInputStream;
-
-/**
- * This is a seriously sick fix for the fact that some .xlsx
- * files contain raw bits of HTML, without being escaped
- * or properly turned into XML.
- * The result is that they contain things like >br<,
- * which breaks the XML parsing.
- * This very sick InputStream wrapper attempts to spot
- * these go past, and fix them.
- * Only works for UTF-8 and US-ASCII based streams!
- * It should only be used where experience shows the problem
- * can occur...
- *
- * @deprecated 3.16-beta2 - use ReplacingInputStream(source, ">br<", ">br/<")
- */
-@Deprecated
-@Removal(version="3.18")
-@Internal
-public class EvilUnclosedBRFixingInputStream extends ReplacingInputStream {
- public EvilUnclosedBRFixingInputStream(InputStream source) {
- super(source, "<br>", "<br/>");
- }
-}
import org.apache.poi.util.CodePageUtil;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Reads an Outlook MSG File in and provides hooks into its data structure.
return getStringFromChunk(mainChunks.getConversationTopic());
}
- /**
- * Gets the message class of the parsed Outlook Message.
- * (Yes, you can use this to determine if a message is a calendar
- * item, note, or actual outlook Message)
- * For emails the class will be IPM.Note
- *
- * @throws ChunkNotFoundException
- * @deprecated 3.16 beta 3. Use {@link #getMessageClassEnum()} instead.
- */
- @Deprecated
- @Removal(version="3.18")
- public String getMessageClass() throws ChunkNotFoundException {
- return getStringFromChunk(mainChunks.getMessageClass());
- }
-
/**
* Gets the message class of the parsed Outlook Message.
* (Yes, you can use this to determine if a message is a calendar