public function readHeader()
    {
        $name     = $this->_inputStream->readUTF();
        $mustRead = (bool)$this->_inputStream->readByte();
        $length   = $this->_inputStream->readLong();

        try {
            $data = $this->_deserializer->readTypeMarker();
        } catch (Exception $e) {
            require_once 'Zend/Amf/Exception.php';
            throw new Zend_Amf_Exception('Unable to parse ' . $name . ' header data: ' . $e->getMessage() . ' '. $e->getLine(), 0, $e);
        }

        $header = new Zend_Amf_Value_MessageHeader($name, $mustRead, $data, $length);
        return $header;
    }
public function readHeader()
    {
        $name     = $this->_inputStream->readUTF();
        $mustRead = (bool)$this->_inputStream->readByte();
        $length   = $this->_inputStream->readLong();

        try {
            $data = $this->_deserializer->readTypeMarker();
        } catch (Exception $e) {
            require_once 'Zend/Amf/Exception.php';
            throw new Zend_Amf_Exception('Unable to parse ' . $name . ' header data: ' . $e->getMessage() . ' '. $e->getLine(), 0, $e);
        }

        $header = new Zend_Amf_Value_MessageHeader($name, $mustRead, $data, $length);
        return $header;
    }
public function readHeader ( ) { $ name = $ this -> _inputStream -> readUTF ( ) ; $ mustRead = ( bool ) $ this -> _inputStream -> readByte ( ) ; $ length = $ this -> _inputStream -> readLong ( ) ; try { $ data = $ this -> _deserializer -> readTypeMarker ( ) ; } catch ( Exception $ e ) { require_once 'Zend/Amf/Exception.php' ; throw new Zend_Amf_Exception ( 'Unable to parse ' . $ name . ' header data: ' . $ e -> getMessage ( ) . ' ' . $ e -> getLine ( ) , 0 , $ e ) ; } $ header = new Zend_Amf_Value_MessageHeader ( $ name , $ mustRead , $ data , $ length ) ; return $ header ; }
Deserialize a message header from the input stream.

A message header is structured as:
- NAME String
- MUST UNDERSTAND Boolean
- LENGTH Int
- DATA Object

@return Zend_Amf_Value_MessageHeader
Deserialize a message header from the input stream .