Skip to content
Snippets Groups Projects
Commit 0b1bbc01 authored by tjc's avatar tjc
Browse files

write as gff

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@4270 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5ca6f145
Branches
Tags
No related merge requests found
......@@ -679,8 +679,20 @@ public class DatabaseDocument extends Document
*/
public OutputStream getOutputStream() throws IOException
{
System.out.println("DatabaseDocument - ReadOnlyException");
throw new ReadOnlyException("this Database Document can not be written to");
final File write_file = new File(System.getProperty("user.dir")+
System.getProperty("file.separator")+
getName());
final FileOutputStream file_output_stream =
new FileOutputStream(write_file);
if(write_file.getName().endsWith(".gz"))
{
// assume this file should be gzipped
return new java.util.zip.GZIPOutputStream (file_output_stream);
}
else
return file_output_stream;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment