public class AvroDataFormat extends Object implements org.apache.camel.spi.DataFormat
| Constructor and Description |
|---|
AvroDataFormat() |
AvroDataFormat(org.apache.avro.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.avro.Schema |
getSchema(org.apache.camel.Exchange exchange,
Object graph) |
protected org.apache.avro.Schema |
loadDefaultSchema(String className,
org.apache.camel.CamelContext context) |
void |
marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream outputStream) |
void |
setInstanceClass(String className) |
void |
setSchema(Object schema) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream inputStream) |
public AvroDataFormat()
public AvroDataFormat(org.apache.avro.Schema schema)
public org.apache.avro.Schema getSchema(org.apache.camel.Exchange exchange,
Object graph)
throws Exception
Exceptionpublic void setSchema(Object schema)
protected org.apache.avro.Schema loadDefaultSchema(String className, org.apache.camel.CamelContext context) throws org.apache.camel.CamelException, ClassNotFoundException
org.apache.camel.CamelExceptionClassNotFoundExceptionpublic void marshal(org.apache.camel.Exchange exchange,
Object graph,
OutputStream outputStream)
throws Exception
marshal in interface org.apache.camel.spi.DataFormatExceptionpublic Object unmarshal(org.apache.camel.Exchange exchange, InputStream inputStream) throws Exception
unmarshal in interface org.apache.camel.spi.DataFormatExceptionApache Camel