org.openrdf.server.metadata.readers
Class FormMapMessageReader
java.lang.Object
org.openrdf.server.metadata.readers.FormMapMessageReader
- All Implemented Interfaces:
- MessageBodyReader<Map<String,String[]>>
public final class FormMapMessageReader
- extends Object
- implements MessageBodyReader<Map<String,String[]>>
Readers a percent encoded form into a Map.
- Author:
- James Leigh
|
Method Summary |
boolean |
isReadable(Class<?> type,
Type genericType,
String mimeType,
ObjectConnection con)
|
Map<String,String[]> |
readFrom(Class<?> type,
Type genericType,
String mimeType,
InputStream in,
Charset charset,
String base,
String location,
ObjectConnection con)
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 |
FormMapMessageReader
public FormMapMessageReader()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
String mimeType,
ObjectConnection con)
- Specified by:
isReadable in interface MessageBodyReader<Map<String,String[]>>
readFrom
public Map<String,String[]> readFrom(Class<?> type,
Type genericType,
String mimeType,
InputStream in,
Charset charset,
String base,
String location,
ObjectConnection con)
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<Map<String,String[]>>
- Throws:
IOException
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.