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