public class PlainTextExtractor extends Object implements MediaTypeTextExtractor
MediaType| Constructor and Description |
|---|
PlainTextExtractor() |
public boolean supports(javax.ws.rs.core.MediaType mediaType)
MediaType is supported by this extractor.supports in interface MediaTypeTextExtractormediaType - to be checked.true if the provided MediaType as input is supported.public String extract(byte[] bytes) throws UnsupportedMediaTypeException
extract in interface MediaTypeTextExtractorbytes - an array of byte representing the input.String with the extracted text.UnsupportedMediaTypeException - if the input implicit Media type is not supported.Copyright © 2014 The Apache Software Foundation. All rights reserved.