public static class JcrAttachmentsProvider.JcrFileItem extends Object implements org.apache.commons.fileupload.FileItem
Modifier and Type | Field and Description |
---|---|
protected JcrAttachmentsProvider.JcrAttachmentItem |
attachmentItem
Reference to the attachment item
|
Constructor and Description |
---|
JcrFileItem(JcrAttachmentsProvider.JcrAttachmentItem attachmentItem)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
byte[] |
get() |
String |
getContentType() |
String |
getFieldName() |
org.apache.commons.fileupload.FileItemHeaders |
getHeaders()
Not Implemented.
|
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
long |
getSize() |
String |
getString() |
String |
getString(String characterEncoding) |
boolean |
isFormField() |
boolean |
isInMemory() |
void |
setFieldName(String arg0) |
void |
setFormField(boolean arg0) |
void |
setHeaders(org.apache.commons.fileupload.FileItemHeaders headers)
Not Implemented.
|
void |
write(File arg0) |
protected JcrAttachmentsProvider.JcrAttachmentItem attachmentItem
public JcrFileItem(JcrAttachmentsProvider.JcrAttachmentItem attachmentItem)
attachmentItem
- the attachment itempublic void delete()
delete
in interface org.apache.commons.fileupload.FileItem
public byte[] get()
get
in interface org.apache.commons.fileupload.FileItem
public String getContentType()
getContentType
in interface org.apache.commons.fileupload.FileItem
public String getFieldName()
getFieldName
in interface org.apache.commons.fileupload.FileItem
public InputStream getInputStream() throws IOException
getInputStream
in interface org.apache.commons.fileupload.FileItem
IOException
public String getName()
getName
in interface org.apache.commons.fileupload.FileItem
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface org.apache.commons.fileupload.FileItem
IOException
public long getSize()
getSize
in interface org.apache.commons.fileupload.FileItem
public String getString()
getString
in interface org.apache.commons.fileupload.FileItem
public String getString(String characterEncoding) throws UnsupportedEncodingException
getString
in interface org.apache.commons.fileupload.FileItem
UnsupportedEncodingException
public boolean isFormField()
isFormField
in interface org.apache.commons.fileupload.FileItem
public boolean isInMemory()
isInMemory
in interface org.apache.commons.fileupload.FileItem
public void setFieldName(String arg0)
setFieldName
in interface org.apache.commons.fileupload.FileItem
public void setFormField(boolean arg0)
setFormField
in interface org.apache.commons.fileupload.FileItem
public void write(File arg0) throws Exception
write
in interface org.apache.commons.fileupload.FileItem
Exception
public org.apache.commons.fileupload.FileItemHeaders getHeaders()
getHeaders
in interface org.apache.commons.fileupload.FileItemHeadersSupport
public void setHeaders(org.apache.commons.fileupload.FileItemHeaders headers)
setHeaders
in interface org.apache.commons.fileupload.FileItemHeadersSupport