org.openrdf.http.object.readers
Class FormStringMessageReader

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

public class FormStringMessageReader
extends Object
implements MessageBodyReader<String>

Reads a String.

Author:
James Leigh

Constructor Summary
FormStringMessageReader()
           
 
Method Summary
 boolean isReadable(MessageType mtype)
           
 String readFrom(MessageType mtype, ReadableByteChannel in, Charset charset, String base, 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

FormStringMessageReader

public FormStringMessageReader()
Method Detail

isReadable

public boolean isReadable(MessageType mtype)
Specified by:
isReadable in interface MessageBodyReader<String>

readFrom

public String readFrom(MessageType mtype,
                       ReadableByteChannel in,
                       Charset charset,
                       String base,
                       String location)
                throws 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<String>
Throws:
IOException


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