multipart
Class Multipart

java.lang.Object
  extended by multipart.Multipart

public class Multipart
extends java.lang.Object

Static class for reading from a multipart stream.

The format for multipart manifests can be found here.


Constructor Summary
Multipart()
           
 
Method Summary
static java.io.InputStream openStream(java.lang.String url)
          Returns an InputStream which streams from the given url.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multipart

public Multipart()
Method Detail

openStream

public static java.io.InputStream openStream(java.lang.String url)
                                      throws java.io.IOException
Returns an InputStream which streams from the given url.

If the url ends with the suffix .parts or has the MIME type text/parts-manifest it is treated as a multipart manifest stream, and the returned InputStream streams the data represented by the manifest, not the contents of the manifest itself.

Otherwise, when the url does not point to a manifest, the returned input stream streams data directly from the url target.

Throws:
java.io.IOException