org.apache.avro.specific
Class SpecificCompiler

java.lang.Object
  extended by org.apache.avro.specific.SpecificCompiler

public class SpecificCompiler
extends Object

Generate specific Java interfaces and classes for protocols and schemas.


Method Summary
static SpecificCompiler compileProtocol(File file)
          Returns generated Java interface for a protocol.
static SpecificCompiler compileSchema(File file)
          Returns generated Java class for a schema.
 String getCode()
          Return generated code.
 String getNamespace()
          Return namespace for compiled code.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compileProtocol

public static SpecificCompiler compileProtocol(File file)
                                        throws IOException
Returns generated Java interface for a protocol.

Throws:
IOException

compileSchema

public static SpecificCompiler compileSchema(File file)
                                      throws IOException
Returns generated Java class for a schema.

Throws:
IOException

getNamespace

public String getNamespace()
Return namespace for compiled code.


getCode

public String getCode()
Return generated code.


main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2009 The Apache Software Foundation