Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moex
Transmorpher
Commits
76af0c45
Commit
76af0c45
authored
Nov 06, 2002
by
Fabien Triolet
Browse files
Serializer can write to the standard output
parent
74cb98c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
transmorpher/src/fr/fluxmedia/transmorpher/stdlib/writefile.java
View file @
76af0c45
/**
/**
* $Id: writefile.java,v 1.
9
2002-11-0
4
0
8
:58:
0
6
jerome
Exp $
* $Id: writefile.java,v 1.
10
2002-11-0
6
0
7
:58:
2
6
triolet
Exp $
*
*
* Transmorpher
* Transmorpher
*
*
...
@@ -106,7 +106,7 @@ public final class writefile extends TSerializer {
...
@@ -106,7 +106,7 @@ public final class writefile extends TSerializer {
*/
*/
public
void
setOutputStream
()
throws
TMRuntimeException
,
TMException
,
SAXException
{
public
void
setOutputStream
()
throws
TMRuntimeException
,
TMException
,
SAXException
{
super
.
setOutputStream
();
super
.
setOutputStream
();
if
(
fileName
.
lastIndexOf
(
'$'
)==-
1
){
if
(
(
fileName
.
lastIndexOf
(
'$'
)==-
1
)
&&(!
printOut
))
{
try
{
try
{
FileOutputStream
FOS
=
null
;
FileOutputStream
FOS
=
null
;
FOS
=
new
FileOutputStream
(
new
File
(
fileName
));
FOS
=
new
FileOutputStream
(
new
File
(
fileName
));
...
@@ -117,7 +117,11 @@ public final class writefile extends TSerializer {
...
@@ -117,7 +117,11 @@ public final class writefile extends TSerializer {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
TMRuntimeException
(
e
,
"Output stream error"
);
throw
new
TMRuntimeException
(
e
,
"Output stream error"
);
}
}
}
}
else
{
handler
.
setResult
(
new
StreamResult
(
System
.
out
));
}
}
}
public
void
reset
()
throws
TMRuntimeException
{
public
void
reset
()
throws
TMRuntimeException
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment