Java System.inheritedChannel()

Syntax

System.inheritedChannel() has the following syntax.

public static Channel inheritedChannel()    throws IOException

Example

In the following code shows how to use System.inheritedChannel() method.


import java.nio.channels.Channel;
//from   www  .j  av  a  2 s  .co  m

public class Main {

  public static void main(String[] args) throws Exception {

    Channel ch = System.inheritedChannel();
  }
}




















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