Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-158

MultipartStream javadoc example cannot be compiled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.2
    • Labels:
      None

      Description

              MultipartStream multipartStream = new MultipartStream(input,
                                                                    boundary);
              boolean nextPart = multipartStream.skipPreamble();
              OutputStream output;
              while(nextPart) {
                  header = chunks.readHeader();
                  // process headers
                  // create some output stream
                  multipartStream.readBodyPart(output);
                  nextPart = multipartStream.readBoundary();
              }
      

      "chunks" means "multipartStream"?

      "readHeader" means "readHeaders"?

      header variable should be declared

      "readBodyPart" means "readBodyData"?

        Attachments

          Activity

            People

            • Assignee:
              jochen@apache.org Jochen Wiedmann
              Reporter:
              yozh Stepan Koltsov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: