Class DefaultTranscoder
java.lang.Object
org.infinispan.commons.dataconversion.AbstractTranscoder
org.infinispan.commons.dataconversion.DefaultTranscoder
- All Implemented Interfaces:
Transcoder
Handle conversions between text/plain, url-encoded, java objects, and octet-stream contents.
- Since:
- 9.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToOctetStream
(Object content, MediaType contentType, MediaType destinationType) doTranscode
(Object content, MediaType contentType, MediaType destinationType) boolean
supportsConversion
(MediaType mediaType, MediaType other) Methods inherited from class org.infinispan.commons.dataconversion.AbstractTranscoder
decodeContent, encodeContent, transcode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.commons.dataconversion.Transcoder
supports
-
Constructor Details
-
DefaultTranscoder
-
-
Method Details
-
doTranscode
- Specified by:
doTranscode
in classAbstractTranscoder
-
convertToOctetStream
public Object convertToOctetStream(Object content, MediaType contentType, MediaType destinationType) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getSupportedMediaTypes
- Returns:
- all the
MediaType
handled by this Transcoder.
-
supportsConversion
- Returns:
true
if the transcoder supports the conversion between the suppliedMediaType
s.
-