uk.org.ogsadai.client.toolkit.soap
Class AttachmentManager.MemoryOnlyDataSource

java.lang.Object
  |
  +--org.apache.axis.attachments.ManagedMemoryDataSource
        |
        +--uk.org.ogsadai.client.toolkit.soap.AttachmentManager.MemoryOnlyDataSource
All Implemented Interfaces:
javax.activation.DataSource
Enclosing class:
AttachmentManager

static class AttachmentManager.MemoryOnlyDataSource
extends org.apache.axis.attachments.ManagedMemoryDataSource

This class caches attachments in memory. TODO: Should investigate using plain ManagedMemoryDataSource that caches out large attachments to disk.

Author:
OGSA-DAI team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
 
Fields inherited from class org.apache.axis.attachments.ManagedMemoryDataSource
cachediskstream, closed, contentType, currentMemoryBuf, currentMemoryBufSz, debugEnabled, deleted, diskCacheFile, is_log, log, MAX_MEMORY_DISK_CACHED, maxCached, memorybuflist, MIN_MEMORY_DISK_CACHED, READ_CHUNK_SZ, readers, totalsz
 
Constructor Summary
(package private) AttachmentManager.MemoryOnlyDataSource(byte[] in, java.lang.String contentType)
          Creates DataSource from byte array.
 
Methods inherited from class org.apache.axis.attachments.ManagedMemoryDataSource
close, delete, finalize, flushToDisk, getContentType, getDiskCacheFile, getInputStream, getName, getOutputStream, main, write, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values
Constructor Detail

AttachmentManager.MemoryOnlyDataSource

AttachmentManager.MemoryOnlyDataSource(byte[] in,
                                       java.lang.String contentType)
                                 throws java.io.IOException
Creates DataSource from byte array.

Parameters:
in - Byte array of data to be stored.
contentType - MIME content type.
Throws:
java.io.IOException