org.apache.axis.attachments
Class IncomingAttachmentStreams.IncomingAttachmentInputStream
java.lang.Object
java.io.InputStream
org.apache.axis.attachments.IncomingAttachmentStreams.IncomingAttachmentInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- IncomingAttachmentStreams
public final class IncomingAttachmentStreams.IncomingAttachmentInputStream
- extends InputStream
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncomingAttachmentStreams.IncomingAttachmentInputStream
public IncomingAttachmentStreams.IncomingAttachmentInputStream(InputStream in)
- Parameters:
in -
getHeaders
public Map getHeaders()
- Returns:
- MIME headers for this attachment. May be null if no headers
were set.
addHeader
public void addHeader(String name,
String value)
- Add a header.
- Parameters:
name - value -
getHeader
public String getHeader(String name)
- Get a header value.
- Parameters:
name -
- Returns:
- The header found or null if not found.
getContentId
public String getContentId()
- Returns:
- The header with HTTPConstants.HEADER_CONTENT_ID as the key.
getContentLocation
public String getContentLocation()
- Returns:
- The header with HTTPConstants.HEADER_CONTENT_LOCATION as the
key.
getContentType
public String getContentType()
- Returns:
- The header with HTTPConstants.HEADER_CONTENT_TYPE as the key.
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.
- Overrides:
markSupported in class InputStream
reset
public void reset()
throws IOException
- Overrides:
reset in class InputStream
- Throws:
IOException
mark
public void mark(int readLimit)
- Overrides:
mark in class InputStream
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
Copyright © The Apache Software Foundation. All Rights Reserved.