Class StreamProvider

java.lang.Object
com.mayam.wf.attributes.shared.expr.StreamProvider
All Implemented Interfaces:
Provider, Closeable, AutoCloseable

public class StreamProvider extends Object implements Provider
NOTE : This generated class can be safely deleted if installing in a GWT installation (use StringProvider instead)
  • Constructor Details

    • StreamProvider

      public StreamProvider(InputStream stream, Charset charset)
    • StreamProvider

      public StreamProvider(Reader reader)
  • Method Details

    • read

      public int read(char[] aDest, int nOfs, int nLen) throws IOException
      Description copied from interface: Provider
      Reads characters into an array
      Specified by:
      read in interface Provider
      Parameters:
      aDest - Destination buffer. May not be null.
      nOfs - Offset at which to start storing characters. Must be ≥ 0.
      nLen - The maximum possible number of characters to read. Must be ≥ 0.
      Returns:
      The number of characters read, or -1 at the end of the stream
      Throws:
      IOException - if reading fails
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException