|
|
@ -79,7 +79,7 @@ public class TextSlide extends Slide {
|
|
|
|
PduPart part = new PduPart();
|
|
|
|
PduPart part = new PduPart();
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
part.setData(message.getBytes(CharacterSets.MIMENAME_ISO_8859_1));
|
|
|
|
part.setData(message.getBytes(CharacterSets.MIMENAME_UTF_8));
|
|
|
|
|
|
|
|
|
|
|
|
if (part.getData().length == 0)
|
|
|
|
if (part.getData().length == 0)
|
|
|
|
throw new AssertionError("Part data should not be zero!");
|
|
|
|
throw new AssertionError("Part data should not be zero!");
|
|
|
@ -89,7 +89,7 @@ public class TextSlide extends Slide {
|
|
|
|
part.setData("Unsupported character set!".getBytes());
|
|
|
|
part.setData("Unsupported character set!".getBytes());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
part.setCharset(CharacterSets.ISO_8859_1);
|
|
|
|
part.setCharset(CharacterSets.UTF_8);
|
|
|
|
part.setContentType(ContentType.TEXT_PLAIN.getBytes());
|
|
|
|
part.setContentType(ContentType.TEXT_PLAIN.getBytes());
|
|
|
|
part.setContentId((System.currentTimeMillis()+"").getBytes());
|
|
|
|
part.setContentId((System.currentTimeMillis()+"").getBytes());
|
|
|
|
part.setName(("Text"+System.currentTimeMillis()).getBytes());
|
|
|
|
part.setName(("Text"+System.currentTimeMillis()).getBytes());
|
|
|
|