public class UploadFileSpec extends Object
Constructor and Description |
---|
UploadFileSpec(File file)
Creates a specification based on a File object.
|
UploadFileSpec(File file,
String contentType)
Creates a specification based on a File object and with a specified content type.
|
UploadFileSpec(String fileName,
InputStream inputStream,
String contentType)
Creates a specification for an upload from an input stream.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the content type associated with this file upload specification.
|
String |
getFileName() |
InputStream |
getInputStream() |
public UploadFileSpec(File file)
public UploadFileSpec(File file, String contentType)
public UploadFileSpec(String fileName, InputStream inputStream, String contentType)
public InputStream getInputStream() throws IOException
IOException
public String getFileName()
public String getContentType()
Copyright © 2012. All Rights Reserved.