/[classpath]/classpath/gnu/xml/transform/TransformerImpl.java
ViewVC logotype

Diff of /classpath/gnu/xml/transform/TransformerImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.4 by gnu_andrew, Wed Nov 2 00:43:29 2005 UTC revision 1.1.2.5 by gnu_andrew, Sun Nov 27 21:00:36 2005 UTC
# Line 487  class TransformerImpl Line 487  class TransformerImpl
487      throws IOException      throws IOException
488    {    {
489      OutputStream out = null;      OutputStream out = null;
490        boolean created = false;
491      try      try
492        {        {
493          out = sr.getOutputStream();          out = sr.getOutputStream();
# Line 523  class TransformerImpl Line 524  class TransformerImpl
524                  URL url = new URL(systemId);                  URL url = new URL(systemId);
525                  out = new FileOutputStream(url.getPath());                  out = new FileOutputStream(url.getPath());
526                }                }
527                created = true;
528            }            }
529          out = new BufferedOutputStream(out);          out = new BufferedOutputStream(out);
530          StreamSerializer serializer =          StreamSerializer serializer =
# Line 539  class TransformerImpl Line 541  class TransformerImpl
541        {        {
542          try          try
543            {            {
544              if (out != null)              if (out != null && created)
545                {                {
546                  out.close();                  out.close();
547                }                }

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26