public final class IncomingAttachmentStreams.IncomingAttachmentInputStream
extends java.io.InputStream
Constructor and Description |
---|
IncomingAttachmentStreams.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 IncomingAttachmentStreams.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.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public void mark(int readLimit)
mark
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
Copyright © 2005 Apache Web Services Project. All Rights Reserved.