org.eclipse.jetty.util

## Class MultiPartInputStream

- java.lang.Object
- - org.eclipse.jetty.util.MultiPartInputStream

-     public class MultiPartInputStream
      extends Object

  MultiPartInputStream Handle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MultiPartInputStream.MultiPart`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static javax.servlet.MultipartConfigElement` | `__DEFAULT_MULTIPART_CONFIG`
    `protected javax.servlet.MultipartConfigElement` | `_config`
    `protected String` | `_contentType`
    `protected File` | `_contextTmpDir`
    `protected InputStream` | `_in`
    `protected MultiMap<String>` | `_parts`
    `protected File` | `_tmpDir`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiPartInputStream(InputStream in, String contentType, javax.servlet.MultipartConfigElement config, File contextTmpDir)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.servlet.http.Part` | `getPart(String name)`
    `Collection<javax.servlet.http.Part>` | `getParts()`
    `protected void` | `parse()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### __DEFAULT_MULTIPART_CONFIG

          public static final javax.servlet.MultipartConfigElement __DEFAULT_MULTIPART_CONFIG

    - #### _in

          protected InputStream _in

    - #### _config

          protected javax.servlet.MultipartConfigElement _config

    - #### _contentType

          protected String _contentType

    - #### _parts

          protected MultiMap<String> _parts

    - #### _tmpDir

          protected File _tmpDir

    - #### _contextTmpDir

          protected File _contextTmpDir

  - ### Constructor Detail

    - #### MultiPartInputStream

          public MultiPartInputStream(InputStream in,
                              String contentType,
                              javax.servlet.MultipartConfigElement config,
                              File contextTmpDir)

      Parameters:
        `in` - Request input stream
        `contentType` - Content-Type header
        `config` - MultipartConfigElement
        `contextTmpDir` - javax.servlet.context.tempdir

  - ### Method Detail

    - #### getParts

          public Collection<javax.servlet.http.Part> getParts()
                                                       throws IOException,
                                                              javax.servlet.ServletException

      Throws:
        `IOException`
        `javax.servlet.ServletException`

    - #### getPart

          public javax.servlet.http.Part getPart(String name)
                                          throws IOException,
                                                 javax.servlet.ServletException

      Throws:
        `IOException`
        `javax.servlet.ServletException`

    - #### parse

          protected void parse()
                        throws IOException,
                               javax.servlet.ServletException

      Throws:
        `IOException`
        `javax.servlet.ServletException`

Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.