public interface ContentStreamSerializer extends Serializable
Modifier and Type | Field and Description |
---|---|
static int |
CONTENTTYPE_CONTENTROWREF
Content type indicating the content is available via a direct reference
to a content row using a content ID.
|
static int |
CONTENTTYPE_COPIEDCONTENT
Content type indicating the content is available via copying an existing
ContentObject.
|
static int |
CONTENTTYPE_EMPTY
Content type indicating an empty LOB.
|
static int |
CONTENTTYPE_PATH
Content type indicating the content is available via a local file path.
|
static int |
CONTENTTYPE_READER
Content type indicating a Reader.
|
static int |
CONTENTTYPE_REFERENCE
Content type indicating the content is specified by a string reference
that is interpreted by the Media instance.
|
static int |
CONTENTTYPE_SHAREDCONTENT
Content type indicating the content is available via sharing an existing
ContentObject.
|
static int |
CONTENTTYPE_STREAM
Content type indicating an InputStream.
|
static int |
CONTENTTYPE_STRING
Content type indicating explicit content, specified as a String.
|
static int |
CONTENTTYPE_UNKNOWN
Invalid or uninitialized content type.
|
Modifier and Type | Method and Description |
---|---|
Reader |
getContentReader()
Get the content as a reader.
|
String |
getContentReference()
Gets the content as a string reference that is interpreted by the Media
instance.
|
Long |
getContentRowReference()
Get the content as a content row ID reference.
|
InputStream |
getContentStream()
Get the content as a stream.
|
String |
getContentString()
Get the content as an explicit String.
|
int |
getContentType()
Get the content type.
|
AttributeValue |
getCopiedContent()
Get the content as an AttributeValue reference to another
ContentObject.
|
String |
getLocalContentPath()
Get the content as a path to a file in the local file system.
|
AttributeValue |
getSharedContent()
Get the content as an AttributeValue reference to another
ContentObject.
|
void |
setContentReader(Reader content)
Set the content as a Reader.
|
void |
setContentReference(LibrarySessionInterface session,
String reference)
Sets the content as a string reference that is interpreted by the Media
instance.
|
void |
setContentRowReference(LibrarySessionInterface session,
Long content)
Set the content as a content row ID reference.
|
void |
setContentStream(InputStream content)
Set the content as a stream.
|
void |
setContentString(String content)
Set the content as an explicit String.
|
void |
setCopiedContent(AttributeValue content)
Set the content as an AttributeValue reference to another
ContentObject.
|
void |
setEmptyContent()
Set the content explicitly as "empty content".
|
void |
setLocalContentPath(String path)
Set the content as a path to a file in the local file system.
|
void |
setSharedContent(AttributeValue content)
Set the content as an AttributeValue reference to another
ContentObject.
|
static final int CONTENTTYPE_UNKNOWN
static final int CONTENTTYPE_EMPTY
static final int CONTENTTYPE_STREAM
static final int CONTENTTYPE_READER
static final int CONTENTTYPE_STRING
static final int CONTENTTYPE_PATH
static final int CONTENTTYPE_COPIEDCONTENT
static final int CONTENTTYPE_CONTENTROWREF
static final int CONTENTTYPE_SHAREDCONTENT
static final int CONTENTTYPE_REFERENCE
int getContentType()
Must be one of the valid Content type constants defined in this interface.
void setEmptyContent()
InputStream getContentStream() throws IfsException
IfsException
void setContentStream(InputStream content)
content
- the content as a streamReader getContentReader()
void setContentReader(Reader content)
content
- the content as a ReaderString getContentString()
void setContentString(String content) throws IfsException
content
- the content as a StringIfsException
String getLocalContentPath()
void setLocalContentPath(String path) throws IfsException
path
- the content as a local file pathIfsException
AttributeValue getCopiedContent()
void setCopiedContent(AttributeValue content)
content
- the content as ContentObject valueAttributeValue getSharedContent()
void setSharedContent(AttributeValue content)
content
- the content as ContentObject valueLong getContentRowReference()
void setContentRowReference(LibrarySessionInterface session, Long content) throws IfsException
This operation requires administration mode.
session
- a session; must be in admin modecontent
- the content as a content row ID reference.IfsException
String getContentReference() throws IfsException
IfsException
- if the operation failsvoid setContentReference(LibrarySessionInterface session, String reference) throws IfsException
This operation requires administration mode.
session
- a session; must be in admin modereference
- the content referenceIfsException
- if the operation failsCopyright © 2023. All rights reserved.