org.openrdf.server.metadata.http.writers
Class AggregateWriter

java.lang.Object
  extended by org.openrdf.server.metadata.http.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(Class<?> type, String mimeType, Charset charset)
           
 long getSize(Object result, String mimeType)
           
 boolean isWriteable(Class<?> type, String mimeType)
           
 void writeTo(Object result, String base, String mimeType, OutputStream out, Charset charset)
           
 
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(Class<?> type,
                             String mimeType,
                             Charset charset)
Specified by:
getContentType in interface MessageBodyWriter<Object>

getSize

public long getSize(Object result,
                    String mimeType)
Specified by:
getSize in interface MessageBodyWriter<Object>

isWriteable

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

writeTo

public void writeTo(Object result,
                    String base,
                    String mimeType,
                    OutputStream out,
                    Charset charset)
             throws IOException,
                    RDFHandlerException,
                    QueryEvaluationException,
                    TupleQueryResultHandlerException,
                    RepositoryException
Specified by:
writeTo in interface MessageBodyWriter<Object>
Throws:
IOException
RDFHandlerException
QueryEvaluationException
TupleQueryResultHandlerException
RepositoryException


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