public function readDate()
{
$tag = $this->stream->getc();
switch ($tag) {
case Tags::TagNull:
return null;
case Tags::TagDate:
return $this->readDateWithoutTag();
case Tags::TagRef:
return $this->readRef();
default:
throw $this->unexpectedTag($tag);
}
}