You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/04/22 17:25:41 UTC
cvs commit: ws-axis/java/src/org/apache/axis/attachments MultiPartRelatedInputStream.java
dims 2005/04/22 08:25:41
Modified: java/src/org/apache/axis/attachments
MultiPartRelatedInputStream.java
Log:
Fix for AXIS-1895 - Use of hard coded value instead of constant
URL: http://issues.apache.org/jira/browse/AXIS-1895
Revision Changes Path
1.44 +4 -1 ws-axis/java/src/org/apache/axis/attachments/MultiPartRelatedInputStream.java
Index: MultiPartRelatedInputStream.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/attachments/MultiPartRelatedInputStream.java,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- MultiPartRelatedInputStream.java 30 Dec 2004 23:38:06 -0000 1.43
+++ MultiPartRelatedInputStream.java 22 Apr 2005 15:25:41 -0000 1.44
@@ -87,6 +87,9 @@
/** Field contentId */
protected String contentId = null;
+ /** Field MAX_CACHED */
+ private static final int MAX_CACHED = 16 * 1024;
+
/**
* Create a new Multipart stream.
* @param contentType the string that holds the contentType
@@ -271,7 +274,7 @@
javax.activation.DataHandler dh =
new javax.activation.DataHandler(
new org.apache.axis.attachments.ManagedMemoryDataSource(
- decodedStream, 16 * 1024, contentType, true));
+ decodedStream, MAX_CACHED, contentType, true));
AttachmentPart ap = new AttachmentPart(dh);
if (contentId != null) {