org.openrdf.http.object.readers
Class PrimitiveBodyReader

java.lang.Object
  extended by org.openrdf.http.object.readers.PrimitiveBodyReader
All Implemented Interfaces:
MessageBodyReader<java.lang.Object>

public class PrimitiveBodyReader
extends java.lang.Object
implements MessageBodyReader<java.lang.Object>

Reads primitive types and their wrappers.

Author:
James Leigh

Constructor Summary
PrimitiveBodyReader()
           
 
Method Summary
 boolean isReadable(MessageType mtype)
           
 java.lang.Object readFrom(MessageType mtype, java.nio.channels.ReadableByteChannel in, java.nio.charset.Charset charset, java.lang.String base, java.lang.String location)
          Must close InputStream or return an object that will later close the InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveBodyReader

public PrimitiveBodyReader()
Method Detail

isReadable

public boolean isReadable(MessageType mtype)
Specified by:
isReadable in interface MessageBodyReader<java.lang.Object>

readFrom

public java.lang.Object readFrom(MessageType mtype,
                                 java.nio.channels.ReadableByteChannel in,
                                 java.nio.charset.Charset charset,
                                 java.lang.String base,
                                 java.lang.String location)
                          throws java.io.IOException
Description copied from interface: MessageBodyReader
Must close InputStream or return an object that will later close the InputStream.

Specified by:
readFrom in interface MessageBodyReader<java.lang.Object>
Throws:
java.io.IOException


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