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.


//  w  w w  . j  a  v  a  2  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();
      }


   }
}




















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