Bug 60795 -- fixed deprecation, thanks to Javen.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1784989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b801a9dc6
commit
31dd2885dd
@ -52,6 +52,7 @@ import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;
|
||||
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.
|
||||
@ -542,8 +543,10 @@ public class MAPIMessage extends POIReadOnlyDocument {
|
||||
* For emails the class will be IPM.Note
|
||||
*
|
||||
* @throws ChunkNotFoundException
|
||||
* @deprecated use {@link #getMessageClassEnum()}
|
||||
* @deprecated 3.16 beta 3. Use {@link #getMessageClassEnum()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version="3.18")
|
||||
public String getMessageClass() throws ChunkNotFoundException {
|
||||
return getStringFromChunk(mainChunks.getMessageClass());
|
||||
}
|
||||
@ -557,7 +560,7 @@ public class MAPIMessage extends POIReadOnlyDocument {
|
||||
* @throws ChunkNotFoundException
|
||||
*/
|
||||
public MESSAGE_CLASS getMessageClassEnum() throws ChunkNotFoundException {
|
||||
String mc = getMessageClass();
|
||||
String mc = getStringFromChunk(mainChunks.getMessageClass());
|
||||
if (mc == null || mc.trim().length() == 0) {
|
||||
return MESSAGE_CLASS.UNSPECIFIED;
|
||||
} else if (mc.equalsIgnoreCase("IPM.Note")) {
|
||||
|
Loading…
Reference in New Issue
Block a user