sullis      2003/03/07 15:12:41

  Modified:    fileupload/src/java/org/apache/commons/fileupload
                        MultipartStream.java
  Log:
  updated javadocs
  updated copyright year for 2003
  added toString() method
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.10      +27 -5     
jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/MultipartStream.java
  
  Index: MultipartStream.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/MultipartStream.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MultipartStream.java      26 Nov 2002 04:13:50 -0000      1.9
  +++ MultipartStream.java      7 Mar 2003 23:12:41 -0000       1.10
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -126,6 +126,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Rafal Krzewski</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Martin Cooper</a>
  + * @author Sean C. Sullivan
    *
    * @version $Id$
    */
  @@ -230,6 +231,10 @@
   
       /**
        * Default constructor.
  +     * 
  +     * @see #MultipartStream(InputStream, byte[], int)
  +     * @see #MultipartStream(InputStream, byte[])
  +     * 
        */
       public MultipartStream()
       {
  @@ -248,6 +253,11 @@
        * @param boundary The token used for dividing the stream into
        *                 <code>encapsulations</code>.
        * @param bufSize  The size of the buffer to be used, in bytes.
  +     * 
  +     * 
  +     * @see #MultipartStream()
  +     * @see #MultipartStream(InputStream, byte[])
  +     * 
        */
       public MultipartStream(InputStream input,
                              byte[] boundary,
  @@ -281,6 +291,10 @@
        *                 <code>encapsulations</code>.
        *
        * @exception IOException when an error occurs.
  +     * 
  +     * @see #MultipartStream()
  +     * @see #MultipartStream(InputStream, byte[], int)
  +     * 
        */
       public MultipartStream(InputStream input,
                              byte[] boundary)
  @@ -728,6 +742,14 @@
           return -1;
       }
   
  +     public String toString() {
  +             StringBuffer sbTemp = new StringBuffer();
  +             sbTemp.append("boundary='");
  +             sbTemp.append(String.valueOf(boundary));
  +             sbTemp.append("'\nbufSize=");
  +             sbTemp.append(bufSize);
  +             return sbTemp.toString();
  +     }
   
       /**
        * Thrown to indicate that the input stream fails to follow the
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to