public final class IncomingAttachmentStreams.IncomingAttachmentInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
IncomingAttachmentInputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add a header.
|
java.lang.String |
getContentId() |
java.lang.String |
getContentLocation() |
java.lang.String |
getContentType() |
java.lang.String |
getHeader(java.lang.String name)
Get a header value.
|
java.util.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() |
public IncomingAttachmentInputStream(java.io.InputStream in)
in - public java.util.Map getHeaders()
public void addHeader(java.lang.String name,
java.lang.String value)
name - value - public java.lang.String getHeader(java.lang.String name)
name - public java.lang.String getContentId()
public java.lang.String getContentLocation()
public java.lang.String getContentType()
public boolean markSupported()
markSupported in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readLimit)
mark in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionCopyright ? 2005 Apache Web Services Project. All Rights Reserved.