// TODO: throw other exception here?
throw new IOException("stream is no longer connected");
}
IScope scope = conn.getScope();
// Get stream filename generator
IStreamFilenameGenerator generator = (IStreamFilenameGenerator) ScopeUtils
.getScopeService(scope, IStreamFilenameGenerator.class,
DefaultStreamFilenameGenerator.class);
// Generate filename
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 append mode is on...