/** {@inheritDoc} */
public void saveAs(String name, boolean isAppend) throws IOException,
ResourceNotFoundException, ResourceExistException {
try {
IScope scope = getScope();
IStreamFilenameGenerator generator = (IStreamFilenameGenerator) ScopeUtils
.getScopeService(scope, IStreamFilenameGenerator.class,
DefaultStreamFilenameGenerator.class);
String filename = generator.generateFilename(scope, name, ".flv", GenerationType.RECORD);
// Get file for that filename
File file;
if (generator.resolvesToAbsolutePath()) {
file = new File(filename);
} else {
file = scope.getContext().getResource(filename).getFile();
}
if (!isAppend) {
if (file.exists()) {
// Per livedoc of FCS/FMS:
// When "live" or "record" is used,