org.ektorp
Class AttachmentInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.ektorp.AttachmentInputStream
All Implemented Interfaces:
Closeable

public class AttachmentInputStream
extends FilterInputStream

An InputStream that knows what content type is contains.

Author:
henrik lundgren

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
AttachmentInputStream(String id, InputStream data, String contentType)
           
AttachmentInputStream(String id, InputStream data, String contentType, long size)
           
 
Method Summary
 long getContentLength()
           
 String getContentType()
           
 String getId()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentInputStream

public AttachmentInputStream(String id,
                             InputStream data,
                             String contentType)

AttachmentInputStream

public AttachmentInputStream(String id,
                             InputStream data,
                             String contentType,
                             long size)
Method Detail

getId

public String getId()

getContentType

public String getContentType()

getContentLength

public long getContentLength()


Copyright © 2011. All Rights Reserved.