IT. Expert System.

Android Reference

SelectorProvider


java.nio.channels.spi

Class SelectorProvider

  • Direct Known Subclasses:
    SelectorProviderImpl


    public abstract class SelectorProvider
    extends Object
    SelectorProvider is an abstract base class that declares methods for providing instances of DatagramChannel, Pipe, Selector , ServerSocketChannel, and SocketChannel. All the methods of this class are thread-safe.

    A provider instance can be retrieved through a system property or the configuration file in a jar file; if no provider is available that way then the system default provider is returned.

    • Constructor Detail

      • SelectorProvider

        protected SelectorProvider()
        Constructs a new SelectorProvider.
    • Method Detail

      • provider

        public static SelectorProvider provider()
        Gets a provider instance by executing the following steps when called for the first time:
        • if the system property "java.nio.channels.spi.SelectorProvider" is set, the value of this property is the class name of the provider returned;
        • if there is a provider-configuration file named "java.nio.channels.spi.SelectorProvider" in META-INF/services of a jar file valid in the system class loader, the first class name is the provider's class name;
        • otherwise, a system default provider will be returned.
        Returns:
        the provider.
      • openDatagramChannel

        public abstract DatagramChannel openDatagramChannel()
                                                     throws IOException
        Creates a new open DatagramChannel.
        Returns:
        the new channel.
        Throws:
        IOException - if an I/O error occurs.
      • openPipe

        public abstract Pipe openPipe()
                               throws IOException
        Creates a new Pipe.
        Returns:
        the new pipe.
        Throws:
        IOException - if an I/O error occurs.
      • openServerSocketChannel

        public abstract ServerSocketChannel openServerSocketChannel()
                                                             throws IOException
        Creates a new open ServerSocketChannel.
        Returns:
        the new channel.
        Throws:
        IOException - if an I/O error occurs.
      • openSocketChannel

        public abstract SocketChannel openSocketChannel()
                                                 throws IOException
        Create a new open SocketChannel.
        Returns:
        the new channel.
        Throws:
        IOException - if an I/O error occurs.
      • inheritedChannel

        public Channel inheritedChannel()
                                 throws IOException
        Returns the channel inherited from the process that created this VM. On Android, this method always returns null because stdin and stdout are never connected to a socket.
        Returns:
        the channel.
        Throws:
        IOException - if an I/O error occurs.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 15143 / 248392366. Delta: 0.01659 с