Interface Provider

All Known Implementing Classes:
StreamProvider, StringProvider

public interface Provider
  • Method Summary

    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 len)
    Reads characters into an array
  • Method Details

    • read

      int read​(char[] buffer, int offset, int len) throws IOException
      Reads characters into an array
      Parameters:
      buffer - Destination buffer
      offset - Offset at which to start storing characters
      len - The maximum possible number of characters to read
      Returns:
      The number of characters read, or -1 if all read
      Throws:
      IOException
    • close

      void close() throws IOException
      Closes the stream and releases any system resources associated with it.
      Throws:
      IOException