Java Runtime .getLocalizedOutputStream ( OutputStream out)
Syntax
Runtime.getLocalizedOutputStream(OutputStream out) has the following syntax.
@Deprecated public OutputStream getLocalizedOutputStream(OutputStream out)
Example
In the following code shows how to use Runtime.getLocalizedOutputStream(OutputStream out) method.
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
/*from ww w . j a v a2s . c o m*/
public class Main {
public static void main(String[] args) {
OutputStream fileOutputStream;
try {
fileOutputStream = new FileOutputStream("c:/a.txy");
Runtime.getRuntime().getLocalizedOutputStream(fileOutputStream);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
}