Package com.tridion.data
Interface CharacterData
- All Superinterfaces:
Serializable
Interface for character data.
-
Method Summary
Modifier and TypeMethodDescriptionGets the charset name of this character data.intGets the component id of this character data.Gets the content type of this character data.intgetId()Gets the id of this character data.Gets anInputStreamrepresenting the character data.getInputStream(String encoding) Gets anInputStreamrepresenting the character data using specified encoding.intGets the namespace id of this character data.intGets the publication id of this character data.Gets region schema id.Gets schema id.Gets the character data as aString.Gets the character data as aString, using a specified encoding.intGets the template id of this character data.getTitle()Gets title.getUrl()gets page url.
-
Method Details
-
getNamespaceId
int getNamespaceId()Gets the namespace id of this character data.- Returns:
- the namespace id
-
getId
int getId()Gets the id of this character data.- Returns:
- The character data id.
-
getPublicationId
int getPublicationId()Gets the publication id of this character data.- Returns:
- The publication id.
-
getComponentId
int getComponentId()Gets the component id of this character data.- Returns:
- The component id.
-
getTemplateId
int getTemplateId()Gets the template id of this character data.- Returns:
- The template id.
-
getInputStream
Gets anInputStreamrepresenting the character data.- Returns:
- The character data as an
InputStream. - Throws:
IOException- If an error occurs accessing the character data.
-
getInputStream
Gets anInputStreamrepresenting the character data using specified encoding.- Parameters:
encoding- The encoding to use to build theInputStream- Returns:
- The character data as an
InputStream. - Throws:
IOException- If an error occurs accessing the character data.
-
getString
Gets the character data as aString. By default, UTF-8 encoding is used.- Returns:
Stringrepresentation of the character data.- Throws:
IOException- If an error occurs accessing the character data.
-
getString
Gets the character data as aString, using a specified encoding.- Parameters:
encoding- The encoding to use to build theStringresult.- Returns:
Stringrepresentation of the character data.- Throws:
IOException- If an error occurs accessing the character data.
-
getCharsetName
String getCharsetName()Gets the charset name of this character data.- Returns:
- The charset name.
-
getContentType
String getContentType()Gets the content type of this character data.- Returns:
- The content type.
-
getSchemaId
Integer getSchemaId()Gets schema id.- Returns:
- The schema id.
-
getRegionSchemaId
Integer getRegionSchemaId()Gets region schema id.- Returns:
- The schema id.
-
getUrl
String getUrl()gets page url.- Returns:
- url for page.
-
getTitle
String getTitle()Gets title.- Returns:
- title.
-