bug 60331: remove deprecated constructor and method in scratchpad o.a.p.hsmf.MAPIMessage
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cbd8705bed
commit
579a132ef3
@ -122,13 +122,6 @@ public class MAPIMessage extends POIReadOnlyDocument {
|
|||||||
public MAPIMessage(NPOIFSFileSystem fs) throws IOException {
|
public MAPIMessage(NPOIFSFileSystem fs) throws IOException {
|
||||||
this(fs.getRoot());
|
this(fs.getRoot());
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #MAPIMessage(DirectoryNode)} instead
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public MAPIMessage(DirectoryNode poifsDir, POIFSFileSystem fs) throws IOException {
|
|
||||||
this(poifsDir);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Constructor for reading MSG Files from a certain
|
* Constructor for reading MSG Files from a certain
|
||||||
* point within a POIFS filesystem
|
* point within a POIFS filesystem
|
||||||
@ -206,10 +199,6 @@ public class MAPIMessage extends POIReadOnlyDocument {
|
|||||||
}
|
}
|
||||||
return getStringFromChunk(mainChunks.getHtmlBodyChunkString());
|
return getStringFromChunk(mainChunks.getHtmlBodyChunkString());
|
||||||
}
|
}
|
||||||
@Deprecated
|
|
||||||
public String getHmtlBody() throws ChunkNotFoundException {
|
|
||||||
return getHtmlBody();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the RTF Rich Message body of this Outlook Message, if this email
|
* Gets the RTF Rich Message body of this Outlook Message, if this email
|
||||||
@ -426,7 +415,7 @@ public class MAPIMessage extends POIReadOnlyDocument {
|
|||||||
|
|
||||||
// Nothing suitable in the headers, try HTML
|
// Nothing suitable in the headers, try HTML
|
||||||
try {
|
try {
|
||||||
String html = getHmtlBody();
|
String html = getHtmlBody();
|
||||||
if(html != null && html.length() > 0) {
|
if(html != null && html.length() > 0) {
|
||||||
// Look for a content type in the meta headers
|
// Look for a content type in the meta headers
|
||||||
Pattern p = Pattern.compile(
|
Pattern p = Pattern.compile(
|
||||||
|
Loading…
Reference in New Issue
Block a user