|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmultipart.Multipart
public class Multipart
Static class for reading from a multipart stream.
The format for multipart manifests can be found here.
| Constructor Summary | |
|---|---|
Multipart()
|
|
| Method Summary | |
|---|---|
static InputStream |
openStream(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 |
|---|
public Multipart()
| Method Detail |
|---|
public static InputStream openStream(String url)
throws IOException
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.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||