com.hack23.cia.model.api.application.content
Interface BinaryContent

Package class diagram package BinaryContent
All Superinterfaces:
ApplicationResource, Content, ModelObject, PersistedModelObject, Resource, Serializable
All Known Implementing Classes:
ImageContent

public interface BinaryContent
extends Content

The Interface BinaryContent.


Method Summary
Modifier and Type Method and Description
 String getFileName()
          Gets the file name.
 byte[] getImageContent()
          Gets the image content.
 String getMimetype()
          Gets the mimetype.
 void setFileName(String fileName)
          Sets the file name.
 void setImageContent(byte[] byteArray)
          Sets the image content.
 void setMimetype(String string)
          Sets the mimetype.
 
Methods inherited from interface com.hack23.cia.model.api.common.Resource
getResourceType
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getId, getTypeContext, getVersion, isNew, setId, setVersion
 

Method Detail

getFileName

String getFileName()
Gets the file name.

Returns:
the file name

getImageContent

byte[] getImageContent()
Gets the image content.

Returns:
the image content

getMimetype

String getMimetype()
Gets the mimetype.

Returns:
the mimetype

setFileName

void setFileName(String fileName)
Sets the file name.

Parameters:
fileName - the new file name

setImageContent

void setImageContent(byte[] byteArray)
Sets the image content.

Parameters:
byteArray - the new image content

setMimetype

void setMimetype(String string)
Sets the mimetype.

Parameters:
string - the new mimetype


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.