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, skip
public 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 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 © The Apache Software Foundation. All Rights Reserved.