|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.SAK.Content
public class Content
This class provides access to one part of a MIME multipart object stream.
| Constructor Summary | |
|---|---|
Content(com.infoengine.SAK.ContentInputStream inputStream)
Constructor that initializes the instance to read from a multipart MIME stream. |
|
Content(java.io.InputStream inputStream,
java.lang.String contentType)
Constructor that initializes the instance to read from a non-multipart MIME stream. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Return the MIME type of the content. |
java.lang.String |
getDisposition()
Return the disposition of the content. |
java.lang.String |
getFileName()
Return the file name of the content. |
java.lang.String |
getHeader(java.lang.String key)
Return the text specified in a MIME header associated with the content object. |
java.util.Enumeration |
getHeaderKeys()
Return an Enumeration of all MIME header keywords associated with the content object. |
java.io.InputStream |
getInputStream()
Return an input stream that can be used to read the body of the content object. |
java.lang.String |
getName()
Return the name of the content. |
java.lang.String |
toString()
Read the body of the content object, and return it as a String. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Content(java.io.InputStream inputStream,
java.lang.String contentType)
inputStream - input streamcontentType - MIME content type associated with the input streampublic Content(com.infoengine.SAK.ContentInputStream inputStream)
inputStream - input stream| Method Detail |
|---|
public java.lang.String getContentType()
public java.lang.String getDisposition()
public java.lang.String getName()
public java.lang.String getFileName()
public java.lang.String getHeader(java.lang.String key)
key - the MIME header keyword
public java.util.Enumeration getHeaderKeys()
public java.io.InputStream getInputStream()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||