|
|
|
FileOutputStream close
|
|||
|---|---|---|---|
|
#18+
Вот посмотрите где я использую FileOutputStream Transformer transformer = transFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); StreamResult streamResult = new StreamResult(new FileOutputStream(outputXMLFile)); transformer.transform(new DOMSource(doc), streamResult); интересно, в таком случае нужно закрывать поток FileOutputStream? Ведь StreamResult не имеет метода close(); ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.04.2007, 15:43:37 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=34431619&tid=2146207]: |
0ms |
get settings: |
9ms |
get forum list: |
21ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
72ms |
get topic data: |
18ms |
get forum data: |
4ms |
get page messages: |
50ms |
get tp. blocked users: |
2ms |
| others: | 284ms |
| total: | 472ms |

| 0 / 0 |
