|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbase.types.Item
public class Item
Concrete class which represents a base unit of data.
Constructor Summary | |
---|---|
Item()
|
|
Item(org.apache.http.HttpEntity entity)
|
|
Item(java.io.InputStream content,
java.lang.String contentType,
java.lang.String contentEncoding,
long length)
|
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 content)
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Item()
public Item(java.io.InputStream content, java.lang.String contentType, java.lang.String contentEncoding, long length)
public Item(org.apache.http.HttpEntity entity)
Method Detail |
---|
public java.lang.String getContentString()
IItem
getContentString
in interface IItem
public void setContentString(java.lang.String data)
IItem
setContentString
in interface IItem
data
- is the String that represents this datapublic java.io.InputStream getContent()
IItem
getContent
in interface IItem
public void setContent(java.io.InputStream content)
IItem
setContent
in interface IItem
content
- is the InputStream to define the datapublic java.lang.String getContentType()
IItem
getContentType
in interface IItem
public void setContentType(java.lang.String type)
IItem
setContentType
in interface IItem
type
- is this data's Content-Typepublic java.lang.String getContentEncoding()
IItem
getContentEncoding
in interface IItem
public void setContentEncoding(java.lang.String encoding)
IItem
setContentEncoding
in interface IItem
encoding
- indicates the data's encodingpublic long getContentLength()
IItem
getContentLength
in interface IItem
public void setContentLength(long length)
IItem
setContentLength
in interface IItem
length
- is the data's lengthpublic 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 |