Class RecordableRequestBody
java.lang.Object
java.io.OutputStream
com.easypost.easyvcr.clients.httpurlconnection.RecordableRequestBody
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
flush
-
Constructor Details
-
RecordableRequestBody
public RecordableRequestBody()Constructor.
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getData
public byte[] getData()Returns the String data stored in this object.- Returns:
- the String data stored in this object
-
hasData
public boolean hasData()Check if this object is storing any data.- Returns:
- true if this object is storing any data, false otherwise
-