1 |
/* TransformerImpl.java -- |
/* TransformerImpl.java -- |
2 |
Copyright (C) 2004 Free Software Foundation, Inc. |
Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
505 |
{ |
{ |
506 |
URL url = new URL(systemId); |
URL url = new URL(systemId); |
507 |
URLConnection connection = url.openConnection(); |
URLConnection connection = url.openConnection(); |
508 |
|
// We need to call setDoInput(false), because our |
509 |
|
// implementation of the file protocol allows writing |
510 |
|
// (unlike Sun), but it will fail with a FileNotFoundException |
511 |
|
// if we also open the connection for input and the output |
512 |
|
// file doesn't yet exist. |
513 |
|
connection.setDoInput(false); |
514 |
connection.setDoOutput(true); |
connection.setDoOutput(true); |
515 |
out = connection.getOutputStream(); |
out = connection.getOutputStream(); |
516 |
} |
} |