com.webmethods.caf.faces.data.attachments
Class LocalTempAttachmentsProvider.FileItemImpl

java.lang.Object
  extended by com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider.FileItemImpl
Enclosing class:
LocalTempAttachmentsProvider

public static class LocalTempAttachmentsProvider.FileItemImpl
extends Object


Field Summary
protected  URLConnection connection
           
protected  URL fileUrl
           
 
Constructor Summary
LocalTempAttachmentsProvider.FileItemImpl(File localFile)
          FileItem for a local file.
 
Method Summary
 void delete()
          Not Implemented.
 byte[] get()
          Not Implemented.
protected  URLConnection getConnection()
           
 String getContentType()
          Returns the ContentType returned by the URL connection.
 String getFieldName()
          Not Implemented.
 InputStream getInputStream()
          Returns the InputStream returned by the URL connection.
 String getName()
          Returns the last segment of the URL.
 OutputStream getOutputStream()
          Not Implemented.
 long getSize()
          Returns the ContentLength returned by the URL connection.
 String getString()
          Not Implemented.
 String getString(String arg0)
          Not Implemented.
 boolean isFormField()
          Not Implemented.
 boolean isInMemory()
          Not Implemented.
 void setFieldName(String arg0)
          Not Implemented.
 void setFormField(boolean arg0)
          Not Implemented.
 void write(File arg0)
          Not Implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileUrl

protected URL fileUrl

connection

protected URLConnection connection
Constructor Detail

LocalTempAttachmentsProvider.FileItemImpl

public LocalTempAttachmentsProvider.FileItemImpl(File localFile)
                                          throws MalformedURLException
FileItem for a local file.

Parameters:
localFile - the local file to use
Throws:
MalformedURLException
Method Detail

getConnection

protected URLConnection getConnection()

getName

public String getName()
Returns the last segment of the URL.

See Also:
org.apache.commons.fileupload.FileItem#getName()

getContentType

public String getContentType()
Returns the ContentType returned by the URL connection.

See Also:
org.apache.commons.fileupload.FileItem#getContentType(), URLConnection.getContentType()

getSize

public long getSize()
Returns the ContentLength returned by the URL connection.

See Also:
org.apache.commons.fileupload.FileItem#getSize(), URLConnection.getContentLength()

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns the InputStream returned by the URL connection.

Throws:
IOException
See Also:
org.apache.commons.fileupload.FileItem#getInputStream()

delete

public void delete()
Not Implemented. Throws UnsupportedOperationException if called.


get

public byte[] get()
Not Implemented. Throws UnsupportedOperationException if called.


getFieldName

public String getFieldName()
Not Implemented. Throws UnsupportedOperationException if called.


getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Not Implemented. Throws UnsupportedOperationException if called.

Throws:
IOException

getString

public String getString()
Not Implemented. Throws UnsupportedOperationException if called.


getString

public String getString(String arg0)
                 throws UnsupportedEncodingException
Not Implemented. Throws UnsupportedOperationException if called.

Throws:
UnsupportedEncodingException

isFormField

public boolean isFormField()
Not Implemented. Throws UnsupportedOperationException if called.


isInMemory

public boolean isInMemory()
Not Implemented. Throws UnsupportedOperationException if called.


setFieldName

public void setFieldName(String arg0)
Not Implemented. Throws UnsupportedOperationException if called.


setFormField

public void setFormField(boolean arg0)
Not Implemented. Throws UnsupportedOperationException if called.


write

public void write(File arg0)
           throws Exception
Not Implemented. Throws UnsupportedOperationException if called.

Throws:
Exception