Class SchemaParser

java.lang.Object
org.apache.avro.SchemaParser

public class SchemaParser extends Object
Avro schema parser for text-based formats like JSON, IDL, etc.

Parses formatted (i.e., text based) schemata from a given source using the available FormattedSchemaParser implementations, and returns the first result. This means it can transparently handle any schema format. The Avro project defines a JSON based format and an IDL format (the latter available as a separate dependency), but you can also provide your own.

The parser can handle various text based sources. If the source contains a UTF encoded latin text based format it can even detect which UTF encoding was used (UTF-8, UTF16BE, UTF16LE, UTF-32BE or UTF32LE).

See Also: