electric.util.mime
Class FileDataHandler
java.lang.Object
electric.util.mime.FileDataHandler
- All Implemented Interfaces:
- IDataHandler, IMIMEConstants
- public class FileDataHandler
- extends java.lang.Object
- implements IDataHandler, IMIMEConstants
FileDataHandler.
- Author:
- webMethods
Method Summary |
boolean |
dispose()
Dispose of the content and return true if the operation was success. |
protected int |
getCopyBufferSize()
|
java.io.File |
getFile()
|
java.io.InputStream |
getInputStream()
Return an input stream for reading the MIME data content. |
void |
readContent(java.io.InputStream input,
int length,
java.lang.String id,
byte[] delimeter,
Context context)
Read the MIME data content and store it for future retrieval. |
protected void |
setOutputFile(Context context)
Set the file where the MIME data content is written to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
FileDataHandler
public FileDataHandler()
getFile
public java.io.File getFile()
getCopyBufferSize
protected int getCopyBufferSize()
readContent
public void readContent(java.io.InputStream input,
int length,
java.lang.String id,
byte[] delimeter,
Context context)
throws java.io.IOException
- Description copied from interface:
IDataHandler
- Read the MIME data content and store it for future retrieval.
- Specified by:
readContent
in interface IDataHandler
- Parameters:
input
- length
- id
- delimeter
- context
-
- Throws:
java.io.IOException
setOutputFile
protected void setOutputFile(Context context)
- Set the file where the MIME data content is written to.
- Parameters:
context
-
getInputStream
public java.io.InputStream getInputStream()
- Description copied from interface:
IDataHandler
- Return an input stream for reading the MIME data content.
- Specified by:
getInputStream
in interface IDataHandler
dispose
public boolean dispose()
throws java.io.IOException
- Description copied from interface:
IDataHandler
- Dispose of the content and return true if the operation was success.
- Specified by:
dispose
in interface IDataHandler
- Throws:
java.io.IOException
copyright© 2001-2004 by webMethods All Rights Reserved.