org.apache.axis.attachments
Class IncomingAttachmentStreams.IncomingAttachmentInputStream
InputStream
org.apache.axis.attachments.IncomingAttachmentStreams.IncomingAttachmentInputStream
- IncomingAttachmentStreams
public final class IncomingAttachmentStreams.IncomingAttachmentInputStream
extends InputStream
IncomingAttachmentInputStream
public IncomingAttachmentInputStream(InputStream in)
addHeader
public void addHeader(String name,
String value)
Add a header.
getContentId
public String getContentId()
- The header with HTTPConstants.HEADER_CONTENT_ID as the key.
getContentLocation
public String getContentLocation()
- The header with HTTPConstants.HEADER_CONTENT_LOCATION as the
key.
getContentType
public String getContentType()
- The header with HTTPConstants.HEADER_CONTENT_TYPE as the key.
getHeader
public String getHeader(String name)
Get a header value.
- The header found or null if not found.
getHeaders
public Map getHeaders()
- MIME headers for this attachment. May be null if no headers
were set.
mark
public void mark(int readLimit)
markSupported
public 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.
read
public int read()
throws IOException
read
public int read(byte[] b)
throws IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
reset
public void reset()
throws IOException
Copyright © 2005 Apache Web Services Project. All Rights Reserved.