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