public class Audio extends DomObject<AudioCollection> implements IAudio
Represents an embedded audio file.
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinaryData()
Returns the copy of an audio's data.
|
java.lang.String |
getContentType()
Returns a MIME type of an audio, encoded in (
getBinaryData() ). |
java.io.InputStream |
getStream()
Returns Stream stream for reading.
|
void |
setContentType(java.lang.String value)
Returns a MIME type of an audio, encoded in (
getBinaryData() ). |
getParent_Immediate
public final java.lang.String getContentType()
Returns a MIME type of an audio, encoded in (getBinaryData()
).
Read-only String
.
getContentType
in interface IAudio
public final void setContentType(java.lang.String value)
Returns a MIME type of an audio, encoded in (getBinaryData()
).
Read-only String
.
public final byte[] getBinaryData()
Returns the copy of an audio's data. In case of large amount of data consider
using of getStream()
method to prevent unnecessary loading of audio's
data into memory or even OutOfMemoryException.
Read-only byte[]
.
getBinaryData
in interface IAudio