public class ContentHandle extends Object implements Serializable
This handle supports retrieving units of content so that each get starts where the previous get left off.
Modifier and Type | Class and Description |
---|---|
static class |
ContentHandle.ContentOpenOptions
Options for opening content.
|
Modifier and Type | Field and Description |
---|---|
static EnumSet |
CONTENT_OPEN_READ
Enum set of
ContentOpenOptions for read. |
static EnumSet |
CONTENT_OPEN_WRITE
Enum set of
ContentOpenOptions for write. |
Modifier and Type | Method and Description |
---|---|
ContentCategory |
getContentCategory()
Gets the content category.
|
String |
getId()
Gets the handle id.
|
long |
getRequestId()
Gets the request id.
|
boolean |
isWritable()
Indicates if the handle is open for write.
|
String |
toString() |
public static final EnumSet CONTENT_OPEN_READ
ContentOpenOptions
for read.
This set contains [Read
].public static final EnumSet CONTENT_OPEN_WRITE
ContentOpenOptions
for write.
This set contains [Write
].public String getId()
public long getRequestId()
public boolean isWritable()
true
is returned the handle is open for write so the
content can be written instead of read.true
if the handle is open for write, or
false
otherwise.public ContentCategory getContentCategory()