KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > axis > attachments > MultiPartInputStream


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the docs/licenses/apache-1.1.txt file.
7  */

8
9 package org.jboss.axis.attachments;
10
11
12 import org.jboss.axis.Part;
13
14
15 /**
16  *
17  * @author Rick Rineholt
18  */

19
20 /**
21  * This simulates the multipart stream
22  */

23 public abstract class MultiPartInputStream extends
24         java.io.FilterInputStream JavaDoc
25 {
26
27    MultiPartInputStream(java.io.InputStream JavaDoc is)
28    {
29       super(is);
30    }
31
32    public abstract Part getAttachmentByReference(final String JavaDoc[] id)
33            throws org.jboss.axis.AxisFault;
34
35    public abstract java.util.Collection JavaDoc getAttachments()
36            throws org.jboss.axis.AxisFault;
37
38    /**
39     * Return the content location.
40     *
41     * @return the Content-Location of the stream.
42     * Null if no content-location specified.
43     */

44    public abstract String JavaDoc getContentLocation();
45
46    /**
47     * Return the content id of the stream
48     *
49     * @return the Content-Location of the stream.
50     * Null if no content-location specified.
51     */

52    public abstract String JavaDoc getContentId();
53
54 }
55
Popular Tags