|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentAccessor
Interface for instances that provide read and write access to content.
Method Summary | |
---|---|
void |
addListener(ContentStreamListener listener)
Use this method to register any interest in events against underlying content streams. |
ContentData |
getContentData()
Get the data representation of the content being accessed. |
java.lang.String |
getContentUrl()
Retrieve the URL that this accessor references |
java.lang.String |
getEncoding()
Get the encoding of the content being accessed |
java.util.Locale |
getLocale()
Get the locale of the content being accessed |
java.lang.String |
getMimetype()
Get the content mimetype |
long |
getSize()
Gets the size of the content that this reader references. |
boolean |
isChannelOpen()
Gets the open/close state of the underlying IO Channel. |
void |
setEncoding(java.lang.String encoding)
Set the String encoding for this accessor |
void |
setLocale(java.util.Locale locale)
Set the Locale for this accessor |
void |
setMimetype(java.lang.String mimetype)
Set the mimetype that must be used for accessing the content |
void |
setRetryingTransactionHelper(RetryingTransactionHelper helper)
Set the transaction helper for callbacks. |
Method Detail |
---|
boolean isChannelOpen()
void addListener(ContentStreamListener listener)
output stream
.
This method can only be used before the content stream has been retrieved.
When the stream has been closed, all listeners will be called
within a transaction
-
to this end, a TransactionService
must have been set as well.
listener
- a listener that will be called for output stream
event notificationContentAccessor.setRetryingTransactionHelper(RetryingTransactionHelper)
void setRetryingTransactionHelper(RetryingTransactionHelper helper)
long getSize()
OL
if the
content doesn't exist
.ContentData getContentData()
The content mimetype
must be set before this
method is called as the content data requires a mimetype whenever the
content URL is specified.
ContentData.ContentData(String, String, long, String)
java.lang.String getContentUrl()
java.lang.String getMimetype()
void setMimetype(java.lang.String mimetype)
mimetype
- the content mimetypejava.lang.String getEncoding()
void setEncoding(java.lang.String encoding)
String
encoding for this accessor
encoding
- a java-recognised encoding formatjava.util.Locale getLocale()
void setLocale(java.util.Locale locale)
Locale
for this accessor
locale
- a java-recognised locale
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |