1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
@node File I/O Functions, Namespace Functions, Schema Functions, Functions
@chapter File I/O Functions
@itemize @bullet
@item
Function: RdfSchema *rdfReadBuffer(char *buffer)
@findex rdfReadBuffer
Reads RDF from a buffer and returns a new RdfSchema. If the buffer does
not contain valid RDF, NULL is returned.
@itemize @minus
@item
buffer: The buffer containing the RDF.
@end itemize
@item
Function: RdfSchema *rdfReadFile(const char *filename)
@findex rdfReadFile
Reads an RDF file and returns a new RdfSchema. If the filename does not
exist, or is not a valid RDF file, NULL is returned.
@itemize @minus
@item
filename: The filename to read in.
@end itemize
@item
Function: void rdfWriteBuffer(RdfSchema *schema, char **buffer, int *size)
@findex rdfWriteBuffer
Writes RDF to a string buffer.
@itemize @minus
@item
schema: The document schema to write.
@item
buffer: A pointer to the buffer to store the RDF in.
@item
size: A pointer to an integer which will contain the new size of the buffer.
@end itemize
@item
Function: void rdfWriteFile(RdfSchema *schema, const char *filename)
@findex rdfWriteFile
Writes RDF to a file.
@itemize @minus
@item
schema: The document schema to write.
@item
filename: The name of the file to write to.
@end itemize
@item
Function: void rdfSetCompressionLevel(RdfSchema *schema, int level)
@findex rdfSetCompressionLevel
Sets the schema's gzip compression level.
@itemize @minus
@item
schema: The document schema to compress.
@item
level: The gzip compression level.
@end itemize
@item
Function: int rdfGetCompressionLevel(RdfSchema *schema)
@findex rdfGetCompressionLevel
Returns the gzip compression level of the schema.
@itemize @minus
@item
schema: The document schema.
@end itemize
@end itemize
|