james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r780490 - /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/message/StringTextBody.java
Date Sun, 31 May 2009 18:03:44 GMT
Author: bago
Date: Sun May 31 18:03:44 2009
New Revision: 780490

URL: http://svn.apache.org/viewvc?rev=780490&view=rev
Log:
String.getBytes(Charset) is a java6 method.

Modified:
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/message/StringTextBody.java

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/message/StringTextBody.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/message/StringTextBody.java?rev=780490&r1=780489&r2=780490&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/message/StringTextBody.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/message/StringTextBody.java
Sun May 31 18:03:44 2009
@@ -51,7 +51,7 @@
 
     @Override
     public InputStream getInputStream() throws IOException {
-        return new ByteArrayInputStream(text.getBytes(charset));
+        return new ByteArrayInputStream(text.getBytes(charset.name()));
     }
 
     @Override



Mime
View raw message