Class SAAJDataSource

    • Field Detail

      • contentType

        protected String contentType
        The content type. This defaults to application/octet-stream.
      • MIN_MEMORY_DISK_CACHED

        public static final int MIN_MEMORY_DISK_CACHED
        Field MIN_MEMORY_DISK_CACHED
        See Also:
        Constant Field Values
      • MAX_MEMORY_DISK_CACHED

        public static final int MAX_MEMORY_DISK_CACHED
        Field MAX_MEMORY_DISK_CACHED
        See Also:
        Constant Field Values
      • maxCached

        protected int maxCached
        Field maxCached
      • diskCacheFile

        protected File diskCacheFile
        Field diskCacheFile
      • deleted

        protected boolean deleted
        Flag to show if the resources behind this have been deleted.
      • READ_CHUNK_SZ

        public static final int READ_CHUNK_SZ
        Field READ_CHUNK_SZ
        See Also:
        Constant Field Values
      • memorybuflist

        protected LinkedList memorybuflist
        The linked list to hold the in memory buffers.
      • currentMemoryBuf

        protected byte[] currentMemoryBuf
        Hold the last memory buffer.
      • currentMemoryBufSz

        protected int currentMemoryBufSz
        The number of bytes written to the above buffer.
      • totalsz

        protected long totalsz
        The total size in bytes in this data source.
      • closed

        protected boolean closed
        If true the source input stream is now closed.
    • Constructor Detail

      • SAAJDataSource

        protected SAAJDataSource()
        Constructor SAAJDataSource.
      • SAAJDataSource

        public SAAJDataSource​(InputStream ss,
                              int maxCached,
                              String contentType)
                       throws IOException
        Create a new boundary stream.
        Parameters:
        ss - is the source input stream that is used to create this data source.
        maxCached - This is the max memory that is to be used to cache the data.
        contentType - the mime type for this data stream. by buffering you can some effiency in searching.
        Throws:
        IOException
      • SAAJDataSource

        public SAAJDataSource​(InputStream ss,
                              int maxCached,
                              String contentType,
                              boolean readall)
                       throws IOException
        Create a new boundary stream.
        Parameters:
        ss - is the source input stream that is used to create this data source.
        maxCached - This is the max memory that is to be used to cache the data.
        contentType - the mime type for this data stream. by buffering you can some effiency in searching.
        readall - if true will read in the whole source.
        Throws:
        IOException