public class IncomingAttachmentInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_CONTENT_DESCRIPTION |
static String |
HEADER_CONTENT_ID |
static String |
HEADER_CONTENT_LENGTH |
static String |
HEADER_CONTENT_LOCATION |
static String |
HEADER_CONTENT_TRANSFER_ENCODING |
static String |
HEADER_CONTENT_TYPE |
| Constructor and Description |
|---|
IncomingAttachmentInputStream(InputStream in,
IncomingAttachmentStreams parentContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value)
Add a header.
|
String |
getContentId() |
String |
getContentLocation() |
String |
getContentType() |
String |
getHeader(String name)
Get a header value.
|
Map |
getHeaders() |
void |
mark(int readLimit) |
boolean |
markSupported()
Don't want to support mark and reset since this may get us into concurrency problem when
different pieces of software may have a handle to the underlying InputStream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
available, close, skippublic static final String HEADER_CONTENT_DESCRIPTION
public static final String HEADER_CONTENT_TYPE
public static final String HEADER_CONTENT_TRANSFER_ENCODING
public static final String HEADER_CONTENT_LENGTH
public static final String HEADER_CONTENT_LOCATION
public static final String HEADER_CONTENT_ID
public IncomingAttachmentInputStream(InputStream in, IncomingAttachmentStreams parentContainer)
in - public Map getHeaders()
public String getHeader(String name)
name - public String getContentId()
public String getContentLocation()
public String getContentType()
public boolean markSupported()
markSupported in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © The Apache Software Foundation. All Rights Reserved.