Package io.freefair.spring.okhttp
Class OkHttpResponseBodyResource
java.lang.Object
org.springframework.core.io.AbstractResource
io.freefair.spring.okhttp.OkHttpResponseBodyResource
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- InputStreamSource,- Resource
- Direct Known Subclasses:
- OkHttpResponseResource
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()longbooleanexists()byte[]getContentAsString(Charset charset) booleanisOpen()booleanMethods inherited from class org.springframework.core.io.AbstractResourcecreateRelative, equals, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, hashCode, isFile, lastModified, readableChannel, toString
- 
Constructor Details- 
OkHttpResponseBodyResource
 
- 
- 
Method Details- 
getContentAsByteArray- Specified by:
- getContentAsByteArrayin interface- Resource
- Throws:
- IOException
 
- 
getContentAsString- Specified by:
- getContentAsStringin interface- Resource
- Throws:
- IOException
 
- 
getDescription- Specified by:
- getDescriptionin interface- Resource
 
- 
getInputStream- Specified by:
- getInputStreamin interface- InputStreamSource
- Throws:
- FileNotFoundException
 
- 
contentLength- Specified by:
- contentLengthin interface- Resource
- Overrides:
- contentLengthin class- AbstractResource
- Throws:
- FileNotFoundException
 
- 
exists- Specified by:
- existsin interface- Resource
- Overrides:
- existsin class- AbstractResource
 
- 
isOpen- Specified by:
- isOpenin interface- Resource
- Overrides:
- isOpenin class- AbstractResource
 
- 
isReadable- Specified by:
- isReadablein interface- Resource
- Overrides:
- isReadablein class- AbstractResource
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
- 
getResponseBody
 
-