Java Data Type Tutorial - Java Runtime .getLocalizedInputStream ( InputStream in)








Syntax

Runtime.getLocalizedInputStream(InputStream in) has the following syntax.

@Deprecated public InputStream getLocalizedInputStream(InputStream in)

Example

In the following code shows how to use Runtime.getLocalizedInputStream(InputStream in) method.

/*from   w  ww  .  jav  a2 s. co  m*/
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;



public class Main {

   public static void main(String[] args) {
      InputStream fileInputStream;
      try {
        fileInputStream = new FileInputStream("c:/a.txy");
        Runtime.getRuntime().getLocalizedInputStream(fileInputStream);
      } catch (FileNotFoundException e) {
        e.printStackTrace();
      }


   }
}