Package 

Class MultipartStreamReader


  • 
    public class MultipartStreamReader
    
                        

    Utility class to parse the body of a response of type multipart/mixed.

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.