public class MediaRow extends UserCustomRow
columns, columnTypes, table, values| Modifier | Constructor and Description |
|---|---|
|
MediaRow(MediaRow mediaRow)
Copy Constructor
|
protected |
MediaRow(MediaTable table)
Constructor to create an empty row
|
|
MediaRow(UserCustomRow userCustomRow)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
MediaRow |
copy()
Copy the row
|
String |
getContentType()
Get the content type
|
UserCustomColumn |
getContentTypeColumn()
Get the content type column
|
int |
getContentTypeColumnIndex()
Get the content type column index
|
byte[] |
getData()
Get the data
|
Bitmap |
getDataBitmap()
Get the data bitmap
|
Bitmap |
getDataBitmap(BitmapFactory.Options options)
Get the data bitmap with decoding options
|
BitmapFactory.Options |
getDataBounds()
Read the data bounds without allocating pixel memory.
|
UserCustomColumn |
getDataColumn()
Get the data column
|
int |
getDataColumnIndex()
Get the data column index
|
long |
getId()
Get the id
|
UserCustomColumn |
getIdColumn()
Get the id column
|
int |
getIdColumnIndex()
Get the id column index
|
MediaTable |
getTable() |
void |
setContentType(String contentType)
Set the content type
|
void |
setData(Bitmap bitmap,
Bitmap.CompressFormat format)
Set the data from a full quality bitmap
|
void |
setData(Bitmap bitmap,
Bitmap.CompressFormat format,
int quality)
Set the data from a bitmap
|
void |
setData(byte[] data)
Set the data
|
getColumnscolumnToContentValue, isValid, setValid, toContentValuescolumnCount, copyValue, getAsMap, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getPkColumn, getPkColumnIndex, getRowColumnType, getRowColumnType, getRowColumnTypes, getValue, getValue, getValues, getValueString, getValueString, hasColumn, hasId, hasIdColumn, resetId, setValue, setValue, validateValueprotected MediaRow(MediaTable table)
table - media tablepublic MediaRow(UserCustomRow userCustomRow)
userCustomRow - user custom rowpublic MediaRow(MediaRow mediaRow)
mediaRow - media row to copypublic MediaTable getTable()
getTable in class UserCoreRow<UserCustomColumn,UserCustomTable>public int getIdColumnIndex()
public UserCustomColumn getIdColumn()
public long getId()
getId in class UserCoreRow<UserCustomColumn,UserCustomTable>public int getDataColumnIndex()
public UserCustomColumn getDataColumn()
public byte[] getData()
public void setData(byte[] data)
data - datapublic BitmapFactory.Options getDataBounds()
BitmapFactory.Options#outWidth,
BitmapFactory.Options#outHeight,
BitmapFactory.Options#outMimeType,
BitmapFactory.Options#outColorSpace,
and BitmapFactory.Options#outConfigpublic Bitmap getDataBitmap()
public Bitmap getDataBitmap(BitmapFactory.Options options)
options - bitmap optionspublic void setData(Bitmap bitmap, Bitmap.CompressFormat format) throws IOException
bitmap - bitmapformat - compress formatIOException - upon failurepublic void setData(Bitmap bitmap, Bitmap.CompressFormat format, int quality) throws IOException
bitmap - bitmapformat - compress formatquality - qualityIOException - upon failurepublic int getContentTypeColumnIndex()
public UserCustomColumn getContentTypeColumn()
public String getContentType()
public void setContentType(String contentType)
contentType - content typepublic MediaRow copy()
copy in class UserCustomRow