|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IItem
Defines the base unit of generic "data" for sending and receiving.
Method Summary | |
---|---|
java.io.InputStream |
getContent()
Returns the raw InputStream of the data. |
java.lang.String |
getContentEncoding()
Indicates this data's Content-Encoding. |
long |
getContentLength()
Indicates the length of the data. |
java.lang.String |
getContentString()
Represents the content's stream as a String. |
java.lang.String |
getContentType()
Indicates this data's Content-Type. |
void |
setContent(java.io.InputStream stream)
Sets the InputStream which defines this data. |
void |
setContentEncoding(java.lang.String encoding)
Sets the Content-Encoding of this data. |
void |
setContentLength(long length)
Sets the Content-Length of this data. |
void |
setContentString(java.lang.String data)
Sets the String that represents this data. |
void |
setContentType(java.lang.String type)
Sets the Content-Type of this data. |
Method Detail |
---|
java.lang.String getContentString()
void setContentString(java.lang.String data)
data
- is the String that represents this datajava.io.InputStream getContent()
void setContent(java.io.InputStream stream)
stream
- is the InputStream to define the datajava.lang.String getContentType()
void setContentType(java.lang.String type)
type
- is this data's Content-Typejava.lang.String getContentEncoding()
void setContentEncoding(java.lang.String encoding)
encoding
- indicates the data's encodinglong getContentLength()
void setContentLength(long length)
length
- is the data's length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |