|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.attachments.ManagedMemoryDataSource
This class allows small attachments to be cached in memory.
| Field Summary | |
protected 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(InputStream inputStream,
String contentType)
Create a new in memory data source |
|
| Method Summary | |
protected void |
finalize()
Delete the cache file if one exists |
String |
getContentType()
|
InputStream |
getInputStream()
|
String |
getName()
|
OutputStream |
getOutputStream()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String contentType
public static final int READ_CHUNK_SZ
public static final int MAX_MEMORY_SZ
| Constructor Detail |
public ManagedMemoryDataSource(InputStream inputStream, String contentType) throws IOException
inputStream - is the source input stream that is used to create this data source..contentType - the mime type for this data stream| Method Detail |
public String getContentType()
getContentType in interface javax.activation.DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface javax.activation.DataSourceIOExceptionpublic String getName()
getName in interface javax.activation.DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface javax.activation.DataSourceIOException
protected void finalize()
throws Throwable
Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||