Package org.apache.avro
Class JsonSchemaFormatter
java.lang.Object
org.apache.avro.JsonSchemaFormatter
- All Implemented Interfaces:
SchemaFormatter
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JsonSchemaFormatter
public JsonSchemaFormatter(boolean prettyPrinted)
-
-
Method Details
-
format
Description copied from interface:SchemaFormatter
Write the specified schema as a String.- Specified by:
format
in interfaceSchemaFormatter
- Parameters:
schema
- the schema to write- Returns:
- the formatted schema
-