Java Data Type Tutorial - 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;
/*w w  w  .ja  v  a 2 s.  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();
      }


   }
}