public final class IncomingAttachmentStreams.IncomingAttachmentInputStream extends InputStream
| Constructor and Description |
|---|
IncomingAttachmentStreams.IncomingAttachmentInputStream(InputStream in) |
| 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 IncomingAttachmentStreams.IncomingAttachmentInputStream(InputStream in)
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.