X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fjibble%2Fepsgraphics%2FEpsDocument.java;h=ccfbcca09f3a0885fa3f87402a2d9929c81ba6fb;hb=c19d2a91ca05e052e3408bf5852d88eb5d0608f1;hp=0674d054e9da96f7cd03cb671f9be222be4ac654;hpb=506d60f0e188723ddc91c26824b41ac7034df3fe;p=jalview.git diff --git a/src/org/jibble/epsgraphics/EpsDocument.java b/src/org/jibble/epsgraphics/EpsDocument.java index 0674d05..ccfbcca 100755 --- a/src/org/jibble/epsgraphics/EpsDocument.java +++ b/src/org/jibble/epsgraphics/EpsDocument.java @@ -1,23 +1,34 @@ /* - Copyright Paul James Mutton, 2001-2004, http://www.jibble.org/ - - This file is part of EpsGraphics2D. - - This software is dual-licensed, allowing you to choose between the GNU - General Public License (GPL) and the www.jibble.org Commercial License. - Since the GPL may be too restrictive for use in a proprietary application, - a commercial license is also provided. Full license information can be - found at http://www.jibble.org/licenses/ - - $Author$ - $Id$ - + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) + * Copyright (C) 2015 The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ - package org.jibble.epsgraphics; -import java.io.*; -import java.util.*; +import jalview.util.MessageManager; + +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; +import java.util.Date; /** * This represents an EPS document. Several EpsGraphics2D objects may point to @@ -153,7 +164,9 @@ public class EpsDocument _bufferedWriter.write(line + "\n"); } catch (IOException e) { - throw new EpsException("Could not write to the output file: " + e); + throw new EpsException(MessageManager.formatMessage( + "exception.eps_coudnt_write_output_file", + new String[] { e.getMessage() })); } }