src/Robtimus/Multipart/Multipart.php
/**
     * Reads a portion of this multipart object.
     * @param int $length the maximum length of the portion to read.
     * @return string a portion of this multipart object not larger than the given length, or an empty string if nothing remains to be read.
     */
Reads a portion of this multipart object.
@param int $length the maximum length of the portion to read.
@return string a portion of this multipart object not larger than the given length, or an empty string if nothing remains to be read.
Reads a portion of this multipart object . @param int $length the maximum length of the portion to read . @return string a portion of this multipart object not larger than the given length or an empty string if nothing remains to be read .
public final function read($length) {
        if (!$this->finished) {
            throw new \LogicException('can\'t read from a non-finished multipart object');
        }
        Util::validateInt($length, '$length');
        if ($length <= 0) {
            return '';
        }
        return $this->doRead($length);
    }
public final function read ( $ length ) { if ( ! $ this -> finished ) { throw new \ LogicException ( 'can\'t read from a non-finished multipart object' ) ; } Util :: validateInt ( $ length , '$length' ) ; if ( $ length <= 0 ) { return '' ; } return $ this -> doRead ( $ length ) ; }
Reads a portion of this multipart object.
Reads a portion of this multipart object .