public class UploadedFile30 extends BaseUploadedFile
UploadedFile that delegates calls to instance of Part (from Servlet 3.0 API)| Constructor and Description |
|---|
UploadedFile30(String parameterName,
String filename,
javax.servlet.http.Part part) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
String |
getHeader(String headerName) |
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String headerName) |
InputStream |
getInputStream() |
String |
getName() |
long |
getSize() |
void |
write(String fileName) |
getContentType, getData, getFileExtension, getParameterNamepublic InputStream getInputStream() throws IOException
IOExceptionpublic String getName()
getName in interface UploadedFilegetName in class BaseUploadedFilepublic long getSize()
public void delete()
throws IOException
IOExceptionpublic void write(String fileName) throws IOException
IOExceptionpublic Collection<String> getHeaderNames()
public Collection<String> getHeaders(String headerName)
Copyright © 2014 JBoss by Red Hat. All rights reserved.