public class RecorderInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
durationMs
The recording duration, in milliseconds.
|
private java.lang.String |
fileName
The absolute path of the recording file.
|
private int |
fileSize
The size in bytes of the recording file.
|
| Constructor and Description |
|---|
RecorderInfo(java.lang.String fileName,
int durationMs,
int fileSize)
Constructs a RecorderInfo object with specified values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDurationMs()
Gets the recording duration in milliseconds.
|
java.lang.String |
getFileName()
Gets the absolute path of the recording file.
|
int |
getFileSize()
Gets the size in bytes of the recording file.
|
void |
setDurationMs(int durationMs)
Sets the recording duration in milliseconds.
|
void |
setFileName(java.lang.String fileName)
Sets the absolute path of the recording file.
|
void |
setFileSize(int fileSize)
Sets the size in bytes of the recording file.
|
java.lang.String |
toString()
Returns a string representation of the RecorderInfo object.
|
private java.lang.String fileName
private int durationMs
private int fileSize
public RecorderInfo(java.lang.String fileName,
int durationMs,
int fileSize)
fileName - The absolute path of the recording file.durationMs - The recording duration in milliseconds.fileSize - The size in bytes of the recording file.public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - The file name to set.public int getDurationMs()
public void setDurationMs(int durationMs)
durationMs - The recording duration to set.public int getFileSize()
public void setFileSize(int fileSize)
fileSize - The file size to set.public java.lang.String toString()
toString in class java.lang.Object