public class FileNamer extends Object
Copyright: Copyright (c) 2003
Organization: Stanford University
This class implements common methods for describing data needed to record/save and retrieve audio recordings.
Usage (hypothetical example):
RecordingData rd = new RecordingData( agent_name, agent_id, course_name,
course_id); log.debug("file" + rd.getFileName() + "." +
rd.getFileExtension());
| Constructor and Description |
|---|
FileNamer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
DOCUMENTATION PENDING
|
static String |
make(String agent_name,
String agent_id,
String course_assignment_context)
Makes a unique file name from the data supplied.
|
static void |
unitTest()
unit test for use with jUnit etc.
|
public static String make(String agent_name, String agent_id, String course_assignment_context)
agent_name - The name of the person uploading the fileagent_id - The id code of the person uploading the filecourse_assignment_context - The name of the course, assignment, part,
quetion etc.public static void unitTest()
public static void main(String[] args)
args - DOCUMENTATION PENDINGCopyright © 2003–2020 Sakai Project. All rights reserved.