private function readPartContent($handle, PartBuilder $partBuilder)
    {
        $partBuilder->setStreamContentStartPos(ftell($handle));
        $this->findContentBoundary($handle, $partBuilder);
        if ($partBuilder->isMultiPart()) {
            while (!$partBuilder->isParentBoundaryFound()) {
                $child = $this->partBuilderFactory->newPartBuilder(
                    $this->partFactoryService->getMimePartFactory()
                );
                $partBuilder->addChild($child);
                $this->readPart($handle, $child);
            }
        }
    }
private function readPartContent($handle, PartBuilder $partBuilder)
    {
        $partBuilder->setStreamContentStartPos(ftell($handle));
        $this->findContentBoundary($handle, $partBuilder);
        if ($partBuilder->isMultiPart()) {
            while (!$partBuilder->isParentBoundaryFound()) {
                $child = $this->partBuilderFactory->newPartBuilder(
                    $this->partFactoryService->getMimePartFactory()
                );
                $partBuilder->addChild($child);
                $this->readPart($handle, $child);
            }
        }
    }
private function readPartContent ( $ handle , PartBuilder $ partBuilder ) { $ partBuilder -> setStreamContentStartPos ( ftell ( $ handle ) ) ; $ this -> findContentBoundary ( $ handle , $ partBuilder ) ; if ( $ partBuilder -> isMultiPart ( ) ) { while ( ! $ partBuilder -> isParentBoundaryFound ( ) ) { $ child = $ this -> partBuilderFactory -> newPartBuilder ( $ this -> partFactoryService -> getMimePartFactory ( ) ) ; $ partBuilder -> addChild ( $ child ) ; $ this -> readPart ( $ handle , $ child ) ; } } }
Reads content for a single part of a MIME message.

If the part being read is in turn a multipart part, readPart is called on
it recursively to read its headers and content.

The start/end positions of the part's content are set on the passed
$partBuilder, which in turn sets the end position of the part and its
parents.

@param resource $handle
@param PartBuilder $partBuilder
Reads content for a single part of a MIME message .