org.jboss.axis.attachments
Class ManagedMemoryDataSource

java.lang.Object
  extended byorg.jboss.axis.attachments.ManagedMemoryDataSource

public class ManagedMemoryDataSource
extends java.lang.Object

This class allows small attachments to be cached in memory.


Field Summary
protected  java.lang.String contentType
          Field contentType
static int MAX_MEMORY_SZ
          Field READ_CHUNK_SZ
static int READ_CHUNK_SZ
          Field READ_CHUNK_SZ
 
Constructor Summary
ManagedMemoryDataSource(java.io.InputStream inputStream, java.lang.String contentType)
          Create a new in memory data source
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

protected java.lang.String contentType
Field contentType


READ_CHUNK_SZ

public static final int READ_CHUNK_SZ
Field READ_CHUNK_SZ

See Also:
Constant Field Values (src)

MAX_MEMORY_SZ

public static final int MAX_MEMORY_SZ
Field READ_CHUNK_SZ

See Also:
Constant Field Values (src)
Constructor Detail

ManagedMemoryDataSource

public ManagedMemoryDataSource(java.io.InputStream inputStream,
                               java.lang.String contentType)
                        throws java.io.IOException
Create a new in memory data source

Parameters:
inputStream - is the source input stream that is used to create this data source..
contentType - the mime type for this data stream
Method Detail

getContentType

public java.lang.String getContentType()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getName

public java.lang.String getName()

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException