-
public class MultipartStreamReader
Utility class to parse the body of a response of type multipart/mixed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
MultipartStreamReader.ChunkListener
-
Constructor Summary
Constructors Constructor Description MultipartStreamReader(BufferedSource source, String boundary)
-
Method Summary
Modifier and Type Method Description boolean
readAllParts(MultipartStreamReader.ChunkListener listener)
Reads all parts of the multipart response and execute the listener for each chunk received. -
-
Constructor Detail
-
MultipartStreamReader
MultipartStreamReader(BufferedSource source, String boundary)
-
-
Method Detail
-
readAllParts
boolean readAllParts(MultipartStreamReader.ChunkListener listener)
Reads all parts of the multipart response and execute the listener for each chunk received.
- Parameters:
listener
- Listener invoked when chunks are received.
-
-
-
-