Package com.bandwidth.utilities
Class FileWrapper
- java.lang.Object
-
- com.bandwidth.utilities.FileWrapper
-
public class FileWrapper extends Object
Class to wrap file and contentType to be sent as part of a HTTP request.
-
-
Constructor Summary
Constructors Constructor Description FileWrapper(File file)
Initialization constructor.FileWrapper(File file, String contentType)
Initialization constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
Getter for content type.File
getFile()
Getter for file.
-
-
-
Constructor Detail
-
FileWrapper
public FileWrapper(File file, String contentType)
Initialization constructor.- Parameters:
file
- File object to be wrappedcontentType
- content type of file
-
FileWrapper
public FileWrapper(File file)
Initialization constructor.- Parameters:
file
- File object to be wrapped
-
-