org.fusesource.fabric.camel.c24io
Class C24IOFormat

java.lang.Object
  extended by org.fusesource.fabric.camel.c24io.C24IOFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class C24IOFormat
extends java.lang.Object
implements org.apache.camel.spi.DataFormat

A DataFormat for working with C24 IO

Version:
$Revision$

Constructor Summary
C24IOFormat()
           
C24IOFormat(biz.c24.io.api.data.Element element)
           
C24IOFormat(biz.c24.io.api.data.Element element, biz.c24.io.api.presentation.Source source, biz.c24.io.api.presentation.Sink sink)
           
 
Method Summary
protected  biz.c24.io.api.presentation.Sink createSink(org.apache.camel.model.dataformat.C24IOContentType content)
           
protected  biz.c24.io.api.presentation.Source createSource(org.apache.camel.model.dataformat.C24IOContentType content)
           
protected  biz.c24.io.api.presentation.Sink discoverSink(org.apache.camel.Exchange exchange)
           
protected  biz.c24.io.api.presentation.Source discoverSource(org.apache.camel.Exchange exchange)
           
 org.apache.camel.model.dataformat.C24IOContentType getContentType()
           
 biz.c24.io.api.presentation.Sink getDefaultSink()
           
 biz.c24.io.api.presentation.Source getDefaultSource()
           
 biz.c24.io.api.data.Element getElement()
           
 java.lang.Class getElementType()
           
 biz.c24.io.api.presentation.Sink getSink(org.apache.camel.Exchange exchange)
           
 biz.c24.io.api.presentation.Source getSource(org.apache.camel.Exchange exchange)
           
protected  boolean isBinaryMimeType(java.lang.String mime)
           
protected  boolean isJavaMimeType(java.lang.String mime)
           
protected  boolean isTextMimeType(java.lang.String mime)
           
protected  boolean isXmlMimeType(java.lang.String mime)
           
 void marshal(org.apache.camel.Exchange exchange, java.lang.Object graph, java.io.OutputStream stream)
           
 void setContentType(org.apache.camel.model.dataformat.C24IOContentType contentType)
           
 void setElement(biz.c24.io.api.data.Element element)
           
 void setElementType(java.lang.Class elementType)
           
 void setSink(biz.c24.io.api.presentation.Sink sink)
           
 void setSource(biz.c24.io.api.presentation.Source source)
           
 java.lang.Object unmarshal(org.apache.camel.Exchange exchange, java.io.InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C24IOFormat

public C24IOFormat()

C24IOFormat

public C24IOFormat(biz.c24.io.api.data.Element element)

C24IOFormat

public C24IOFormat(biz.c24.io.api.data.Element element,
                   biz.c24.io.api.presentation.Source source,
                   biz.c24.io.api.presentation.Sink sink)
Method Detail

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    java.lang.Object graph,
                    java.io.OutputStream stream)
             throws java.lang.Exception
Specified by:
marshal in interface org.apache.camel.spi.DataFormat
Throws:
java.lang.Exception

unmarshal

public java.lang.Object unmarshal(org.apache.camel.Exchange exchange,
                                  java.io.InputStream stream)
                           throws java.io.IOException
Specified by:
unmarshal in interface org.apache.camel.spi.DataFormat
Throws:
java.io.IOException

getSource

public biz.c24.io.api.presentation.Source getSource(org.apache.camel.Exchange exchange)

getSink

public biz.c24.io.api.presentation.Sink getSink(org.apache.camel.Exchange exchange)

getElement

public biz.c24.io.api.data.Element getElement()

setElement

public void setElement(biz.c24.io.api.data.Element element)

getElementType

public java.lang.Class getElementType()

setElementType

public void setElementType(java.lang.Class elementType)

setSink

public void setSink(biz.c24.io.api.presentation.Sink sink)

setSource

public void setSource(biz.c24.io.api.presentation.Source source)

getContentType

public org.apache.camel.model.dataformat.C24IOContentType getContentType()

setContentType

public void setContentType(org.apache.camel.model.dataformat.C24IOContentType contentType)

getDefaultSource

public biz.c24.io.api.presentation.Source getDefaultSource()

getDefaultSink

public biz.c24.io.api.presentation.Sink getDefaultSink()

discoverSource

protected biz.c24.io.api.presentation.Source discoverSource(org.apache.camel.Exchange exchange)

createSource

protected biz.c24.io.api.presentation.Source createSource(org.apache.camel.model.dataformat.C24IOContentType content)

discoverSink

protected biz.c24.io.api.presentation.Sink discoverSink(org.apache.camel.Exchange exchange)

createSink

protected biz.c24.io.api.presentation.Sink createSink(org.apache.camel.model.dataformat.C24IOContentType content)

isXmlMimeType

protected boolean isXmlMimeType(java.lang.String mime)

isJavaMimeType

protected boolean isJavaMimeType(java.lang.String mime)

isTextMimeType

protected boolean isTextMimeType(java.lang.String mime)

isBinaryMimeType

protected boolean isBinaryMimeType(java.lang.String mime)


Copyright © 2012 FuseSource. All Rights Reserved.