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 |
static String |
HEADER_CONTENT_TYPE_JMS |
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, skip
public 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_TYPE_JMS
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 InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.