public class MultipartStreamReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MultipartStreamReader.ChunkListener |
Constructor and Description |
---|
MultipartStreamReader(okio.BufferedSource source,
java.lang.String boundary) |
Modifier and Type | Method and Description |
---|---|
boolean |
readAllParts(MultipartStreamReader.ChunkListener listener)
Reads all parts of the multipart response and execute the listener for each chunk received.
|
public MultipartStreamReader(okio.BufferedSource source, java.lang.String boundary)
public boolean readAllParts(MultipartStreamReader.ChunkListener listener) throws java.io.IOException
listener
- Listener invoked when chunks are received.java.io.IOException