public function EasyRdf_Format::newSerialiser

Create a new serialiser to parse this format

Return value

object The new serialiser object

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Format.php, line 492

Class

EasyRdf_Format
Class the represents an RDF file format.

Code

public function newSerialiser() {
  $serialiserClass = $this->serialiserClass;
  if (!$serialiserClass) {
    throw new EasyRdf_Exception("No serialiser class available for format: " . $this
      ->getName());
  }
  return new $serialiserClass();
}