|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xoe.core.content.ContentElementFactory
The ContentElementFactory
class is used to construct
content elements for the Content Cache and the Stash.
Method Summary | |
ContentElement |
createContentElement(URL url)
Returns the content element associated with the content at url . |
ContentElement |
createContentElement(URL url,
byte[] dataArray)
Returns the content element associated with the content at url . |
ContentElement |
createContentElement(URL url,
byte[] dataArray,
Date d)
Returns the content element associated with the content at url . |
ContentElement |
createContentElement(URL url,
InputStream dataStream)
Returns the content element associated with the content at url . |
ContentElement |
createContentElement(URL url,
InputStream dataStream,
Date d)
Returns the content element associated with the content at url . |
ContentElement |
createContentElement(URL url,
InputStream dataStream,
int len)
Returns the content element associated with the content at url . |
ContentElement |
createContentElement(URL url,
InputStream dataStream,
int len,
Date d)
Returns the content element associated with the content at url . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public ContentElement createContentElement(URL url) throws IOException
url
.url
- the URL associated with the desired contenturl
IOException
- if an I/O error occurspublic ContentElement createContentElement(URL url, InputStream dataStream) throws IOException
url
.
Uses dataStream
to build the content element's internal byte
array of data. dataStream
must be handled by the caller.url
- the URL associated with the desired contentdataStream
- the InputStream representing the content's binary dataurl
IOException
- if an I/O error occurspublic ContentElement createContentElement(URL url, InputStream dataStream, int len) throws IOException
url
.
Uses dataStream
to build the content element's internal byte
array of data. dataStream
must be handled by the caller.url
- the URL associated with the desired contentdataStream
- the InputStream representing the content's datalen
- the length, in bytes, of the dataurl
IOException
- if an I/O error occurspublic ContentElement createContentElement(URL url, InputStream dataStream, Date d) throws IOException
url
.
Uses dataStream
to build the content element's internal byte
array of data. dataStream
must be handled by the caller.url
- the URL associated with the desired contentdataStream
- the InputStream representing the content's binary datad
- the Date to use as the last modified for this contenturl
IOException
- if an I/O error occurspublic ContentElement createContentElement(URL url, InputStream dataStream, int len, Date d) throws IOException
url
.
Uses dataStream
to build the content element's internal byte
array of data. dataStream
must be handled by the caller.url
- the URL associated with the desired contentdataStream
- the InputStream representing the content's binary datalen
- the length, in bytes, of the datad
- the Date to use as the last modified for this contenturl
IOException
- if an I/O error occurspublic ContentElement createContentElement(URL url, byte[] dataArray) throws IOException
url
.
Uses dataArray
for the content's internal byte array of data.url
- the URL associated with the desired contentdataArray
- the content's binary dataurl
IOException
- if an I/O error occurspublic ContentElement createContentElement(URL url, byte[] dataArray, Date d) throws IOException
url
.
Uses dataArray
for the content's internal byte array of data.url
- the URL associated with the desired contentdataArray
- the content's binary datad
- the Date to use as the last modified for this contenturl
IOException
- if an I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |