Package com.tridion.data
Interface BinaryData
- All Known Implementing Classes:
BinaryDataBuffer,BinaryDataFile
public interface BinaryData
Interface for binary data.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Gets the binary data as an array of bytes.longGets the size of underlying binary data.intgetId()Gets the id of this binary data.Gets anInputStreamrepresenting the binary data.intGets the namespace id.intGets the publication id of this binary data.Returns the id of the variant for this binary data.
-
Method Details
-
getId
int getId()Gets the id of this binary data.- Returns:
- The binary data id.
-
getNamespaceId
int getNamespaceId()Gets the namespace id.- Returns:
- namespace id
-
getPublicationId
int getPublicationId()Gets the publication id of this binary data.- Returns:
- The publication id.
-
getVariantId
String getVariantId()Returns the id of the variant for this binary data. -
getInputStream
Gets anInputStreamrepresenting the binary data.- Returns:
- The binary data as an
InputStream. - Throws:
IOException- If an error occurs accessing the binary data.
-
getBytes
Gets the binary data as an array of bytes.- Returns:
- byte[] representation of the binary data.
- Throws:
IOException- If an error occurs accessing the binary data.
-
getDataSize
long getDataSize()Gets the size of underlying binary data.- Returns:
- The binary data size.
-