Author: bago
Date: Sat Jan 2 21:21:25 2010
New Revision: 895294
URL: http://svn.apache.org/viewvc?rev=895294&view=rev
Log:
Hide some visibility for DecoderUtil static methods to better show what is the
public method exposed (decodeEncodedWords) (related to MIME4J-145)
Modified:
james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/codec/DecoderUtil.java
Modified:
james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/codec/DecoderUtil.java
URL:
http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/codec/DecoderUtil.java?rev=895294&r1=895293&r2=895294&view=diff
==============================================================================
---
james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/codec/DecoderUtil.java
(original)
+++
james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/codec/DecoderUtil.java
Sat Jan 2 21:21:25 2010
@@ -45,7 +45,7 @@
* @param s the string to decode.
* @return the decoded bytes.
*/
- public static byte[] decodeQuotedPrintable(String s) {
+ private static byte[] decodeQuotedPrintable(String s) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
@@ -73,7 +73,7 @@
* @param s the string to decode.
* @return the decoded bytes.
*/
- public static byte[] decodeBase64(String s) {
+ private static byte[] decodeBase64(String s) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
@@ -105,7 +105,7 @@
* @throws UnsupportedEncodingException if the given Java charset isn't
* supported.
*/
- public static String decodeB(String encodedText, String charset)
+ static String decodeB(String encodedText, String charset)
throws UnsupportedEncodingException {
byte[] decodedBytes = decodeBase64(encodedText);
return new String(decodedBytes, charset);
@@ -121,7 +121,7 @@
* @throws UnsupportedEncodingException if the given Java charset isn't
* supported.
*/
- public static String decodeQ(String encodedText, String charset)
+ static String decodeQ(String encodedText, String charset)
throws UnsupportedEncodingException {
encodedText = replaceUnderscores(encodedText);