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();
      }


   }
}




















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable