org.openrdf.server.metadata.writers
Class InputStreamBodyWriter

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

public class InputStreamBodyWriter
extends Object
implements MessageBodyWriter<InputStream>


Constructor Summary
InputStreamBodyWriter()
           
 
Method Summary
 String getContentType(String mimeType, Class<?> type, ObjectFactory of, Charset charset)
           
 long getSize(String mimeType, Class<?> type, ObjectFactory of, InputStream t)
           
 boolean isWriteable(String mimeType, Class<?> type, ObjectFactory of)
           
 void writeTo(String mimeType, Class<?> type, ObjectFactory of, InputStream 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

InputStreamBodyWriter

public InputStreamBodyWriter()
Method Detail

isWriteable

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

getSize

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

getContentType

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

writeTo

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


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