diff --git a/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java b/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java index 0cc31b91af..570bc6d625 100644 --- a/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java +++ b/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java @@ -185,12 +185,16 @@ public class MAPIMessage extends POIDocument { * @return The string representation of the 'html' version of the body, if available. * @throws ChunkNotFoundException */ - public String getHmtlBody() throws ChunkNotFoundException { + public String getHtmlBody() throws ChunkNotFoundException { if(mainChunks.htmlBodyChunkBinary != null) { return mainChunks.htmlBodyChunkBinary.getAs7bitString(); } return getStringFromChunk(mainChunks.htmlBodyChunkString); } + @Deprecated + public String getHmtlBody() throws ChunkNotFoundException { + return getHtmlBody(); + } /** * Gets the RTF Rich Message body of this Outlook Message, if this email diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java index e5d9a6e1d6..9b2321ac71 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestBasics.java @@ -222,7 +222,7 @@ public final class TestBasics extends TestCase { fail("File doesn't have headers!"); } catch(ChunkNotFoundException e) {} - String html = chinese.getHmtlBody(); + String html = chinese.getHtmlBody(); assertTrue("Charset not found:\n" + html, html.contains("text/html; charset=big5")); // Defaults to CP1251 diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java b/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java index 9c2b5d0f65..435f9bcf09 100644 --- a/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java +++ b/src/scratchpad/testcases/org/apache/poi/hsmf/TestOutlook30FileRead.java @@ -134,7 +134,7 @@ private MAPIMessage mapiMessage; * Ensure we can get the HTML and RTF versions */ public void testReadBodyContents() throws Exception { - String html = mapiMessage.getHmtlBody(); + String html = mapiMessage.getHtmlBody(); String rtf = mapiMessage.getRtfBody(); assertNotNull(html); assertNotNull(rtf);