org.openrdf.server.metadata.writers
Class AggregateWriter

java.lang.Object
  extended by org.openrdf.server.metadata.writers.AggregateWriter
All Implemented Interfaces:
MessageBodyWriter<Object>

public class AggregateWriter
extends Object
implements MessageBodyWriter<Object>

Delegates to other MessageBodyWriters.

Author:
James Leigh

Constructor Summary
AggregateWriter()
           
 
Method Summary
 String getContentType(String mimeType, Class<?> type, ObjectFactory of, Charset charset)
           
 long getSize(String mimeType, Class<?> type, ObjectFactory of, Object result)
           
 boolean isWriteable(String mimeType, Class<?> type, ObjectFactory of)
           
 void writeTo(String mimeType, Class<?> type, ObjectFactory of, Object result, String base, Charset charset, OutputStream out, int bufSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateWriter

public AggregateWriter()
Method Detail

getContentType

public String getContentType(String mimeType,
                             Class<?> type,
                             ObjectFactory of,
                             Charset charset)
Specified by:
getContentType in interface MessageBodyWriter<Object>

getSize

public long getSize(String mimeType,
                    Class<?> type,
                    ObjectFactory of,
                    Object result)
Specified by:
getSize in interface MessageBodyWriter<Object>

isWriteable

public boolean isWriteable(String mimeType,
                           Class<?> type,
                           ObjectFactory of)
Specified by:
isWriteable in interface MessageBodyWriter<Object>

writeTo

public void writeTo(String mimeType,
                    Class<?> type,
                    ObjectFactory of,
                    Object result,
                    String base,
                    Charset charset,
                    OutputStream out,
                    int bufSize)
             throws IOException,
                    OpenRDFException
Specified by:
writeTo in interface MessageBodyWriter<Object>
Throws:
IOException
OpenRDFException


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.