13
13
package org .asynchttpclient .multipart ;
14
14
15
15
import static org .asynchttpclient .util .StandardCharsets .US_ASCII ;
16
- import static org .asynchttpclient .util .StandardCharsets .ISO_8859_1 ;
17
16
18
17
import java .io .ByteArrayOutputStream ;
19
18
import java .io .IOException ;
@@ -30,11 +29,6 @@ public abstract class AbstractFilePart extends PartBase {
30
29
*/
31
30
public static final String DEFAULT_CONTENT_TYPE = "application/octet-stream" ;
32
31
33
- /**
34
- * Default charset of file attachments.
35
- */
36
- public static final String DEFAULT_CHARSET = ISO_8859_1 .name ();
37
-
38
32
/**
39
33
* Default transfer encoding of file attachments.
40
34
*/
@@ -59,11 +53,10 @@ public abstract class AbstractFilePart extends PartBase {
59
53
* @param contentType
60
54
* the content type for this part, if <code>null</code> the {@link #DEFAULT_CONTENT_TYPE default} is used
61
55
* @param charset
62
- * the charset encoding for this part, if <code>null</code> the {@link #DEFAULT_CHARSET default} is used
63
- * @param contentId
56
+ * the charset encoding for this part
64
57
*/
65
58
public AbstractFilePart (String name , String contentType , String charset , String contentId ) {
66
- super (name , contentType == null ? DEFAULT_CONTENT_TYPE : contentType , charset == null ? DEFAULT_CHARSET : charset ,
59
+ super (name , contentType == null ? DEFAULT_CONTENT_TYPE : contentType , charset ,
67
60
DEFAULT_TRANSFER_ENCODING , contentId );
68
61
}
69
62
0 commit comments