electric.util.mime
Class MemoryDataHandler

java.lang.Object
  extended byelectric.util.mime.MemoryDataHandler
All Implemented Interfaces:
IDataHandler

public class MemoryDataHandler
extends java.lang.Object
implements IDataHandler

MemoryDataHandler.

Author:
webMethods

Constructor Summary
MemoryDataHandler()
           
 
Method Summary
 boolean dispose()
          Dispose of the content and return true if the operation was success.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryDataHandler

public MemoryDataHandler()
Method Detail

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

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()
Description copied from interface: IDataHandler
Dispose of the content and return true if the operation was success.

Specified by:
dispose in interface IDataHandler


copyright© 2001-2004 by webMethods All Rights Reserved.