Author: scheu
Date: Fri Mar 7 05:50:39 2008
New Revision: 634676
URL: http://svn.apache.org/viewvc?rev=634676&view=rev
Log:
WSCOMMONS-275
Contributor: Kazushi Kaneshiro
Quick fix for MIMEBodyPartInputStream read methods.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEBodyPartInputStream.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEBodyPartInputStream.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEBodyPartInputStream.java?rev=634676&r1=634675&r2=634676&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEBodyPartInputStream.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEBodyPartInputStream.java
Fri Mar 7 05:50:39 2008
@@ -82,7 +82,7 @@
*/
public int read(byte[] b, int off, int len) throws IOException {
if (done) {
- return 0;
+ return -1;
}
int rc = bpis.read(b, off, len);
if (getBoundaryStatus()) {
@@ -96,7 +96,7 @@
*/
public int read(byte[] b) throws IOException {
if (done) {
- return 0;
+ return -1;
}
int rc = bpis.read(b);
if (getBoundaryStatus()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]