|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaTypeTextExtractor
A MediaTypeTextExtractor extracts text from a (list of) specified MediaType.
| Method Summary | |
|---|---|
String |
extract(byte[] bytes)
Extract the text from the provided input if its Media Type is supported. |
boolean |
supports(javax.ws.rs.core.MediaType mediaType)
Check if the provided MediaType is supported by this extractor. |
| Method Detail |
|---|
boolean supports(javax.ws.rs.core.MediaType mediaType)
MediaType is supported by this extractor.
mediaType - to be checked.
true if the provided MediaType as input is supported.
String extract(byte[] bytes)
throws UnsupportedMediaTypeException
bytes - an array of byte representing the input.
String with the extracted text.
UnsupportedMediaTypeException - if the input implicit Media type is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||