Serializer

## Serializer Serializer — RDF serializers - from RDF triples to a syntax |

## Functions

raptor_serializer * | raptor_new_serializer ()
void | raptor_free_serializer ()
int | raptor_serializer_start_to_iostream ()
int | raptor_serializer_start_to_filename ()
int | raptor_serializer_start_to_string ()
int | raptor_serializer_start_to_file_handle ()
int | raptor_serializer_set_namespace ()
int | raptor_serializer_set_namespace_from_namespace ()
int | raptor_serializer_serialize_statement ()
int | raptor_serializer_serialize_end ()
int | raptor_serializer_flush ()
const raptor_syntax_description * | raptor_serializer_get_description ()
raptor_iostream * | raptor_serializer_get_iostream ()
raptor_locator * | raptor_serializer_get_locator ()
int | raptor_serializer_set_option ()
int | raptor_serializer_get_option ()
raptor_world * | raptor_serializer_get_world ()

## Types and Values

typedef | raptor_serializer

## Description

The serializing class that allows creating a serializer for writing a particular syntax to an output string, file, file handle or user function (via raptor_iostream).

There are also methods to deal with handling errors, warnings and returned triples as well as setting options (features) that can adjust how serializing is performed.

## Functions

### raptor_new_serializer ()

    raptor_serializer *
    raptor_new_serializer (raptor_world *world,
                           const char *name);

#### Returns

### raptor_free_serializer ()

    void
    raptor_free_serializer (raptor_serializer *rdf_serializer);

### raptor_serializer_start_to_iostream ()

    int
    raptor_serializer_start_to_iostream (raptor_serializer *rdf_serializer,
                                         raptor_uri *uri,
                                         raptor_iostream *iostream);

#### Returns

### raptor_serializer_start_to_filename ()

    int
    raptor_serializer_start_to_filename (raptor_serializer *rdf_serializer,
                                         const char *filename);

#### Returns

### raptor_serializer_start_to_string ()

    int
    raptor_serializer_start_to_string (raptor_serializer *rdf_serializer,
                                       raptor_uri *uri,
                                       void **string_p,
                                       size_t *length_p);

#### Returns

### raptor_serializer_start_to_file_handle ()

    int
    raptor_serializer_start_to_file_handle
                                   (raptor_serializer *rdf_serializer,
                                    raptor_uri *uri,
                                    FILE *fh);

#### Returns

### raptor_serializer_set_namespace ()

    int
    raptor_serializer_set_namespace (raptor_serializer *rdf_serializer,
                                     raptor_uri *uri,
                                     const unsigned char *prefix);

#### Returns

### raptor_serializer_set_namespace_from_namespace ()

    int
    raptor_serializer_set_namespace_from_namespace
                                   (raptor_serializer *rdf_serializer,
                                    raptor_namespace *nspace);

#### Returns

### raptor_serializer_serialize_statement ()

    int
    raptor_serializer_serialize_statement (raptor_serializer *rdf_serializer,
                                           raptor_statement *statement);

#### Returns

### raptor_serializer_serialize_end ()

    int
    raptor_serializer_serialize_end (raptor_serializer *rdf_serializer);

#### Returns

### raptor_serializer_flush ()

    int
    raptor_serializer_flush (raptor_serializer *rdf_serializer);

#### Returns

### raptor_serializer_get_description ()

    const raptor_syntax_description *
    raptor_serializer_get_description (raptor_serializer *rdf_serializer);

#### Returns

### raptor_serializer_get_iostream ()

    raptor_iostream *
    raptor_serializer_get_iostream (raptor_serializer *serializer);

#### Returns

### raptor_serializer_get_locator ()

    raptor_locator *
    raptor_serializer_get_locator (raptor_serializer *rdf_serializer);

#### Returns

### raptor_serializer_set_option ()

    int
    raptor_serializer_set_option (raptor_serializer *serializer,
                                  raptor_option option,
                                  const char *string,
                                  int integer);

#### Returns

### raptor_serializer_get_option ()

    int
    raptor_serializer_get_option (raptor_serializer *serializer,
                                  raptor_option option,
                                  char **string_p,
                                  int *integer_p);

#### Returns

### raptor_serializer_get_world ()

    raptor_world *
    raptor_serializer_get_world (raptor_serializer *rdf_serializer);

#### Returns

## Types and Values

### raptor_serializer

    raptor_serializer* raptor_serializer;

Raptor Serializer class