Class NullProvider

  • All Implemented Interfaces:
    Provider

    public class NullProvider
    extends java.lang.Object
    implements Provider
    • Constructor Summary

      Constructors 
      Constructor Description
      NullProvider()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the stream and releases any system resources associated with it.
      int read​(char[] buffer, int offset, int length)
      Reads characters into an array
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullProvider

        public NullProvider()
    • Method Detail

      • read

        public int read​(char[] buffer,
                        int offset,
                        int length)
        Description copied from interface: Provider
        Reads characters into an array
        Specified by:
        read in interface Provider
        Parameters:
        buffer - Destination buffer
        offset - Offset at which to start storing characters
        length - The maximum possible number of characters to read
        Returns:
        The number of characters read, or -1 if all read
      • close

        public void close()
        Description copied from interface: Provider
        Closes the stream and releases any system resources associated with it.
        Specified by:
        close in interface Provider