com.harukizaemon.simian

## Class StreamLoader

- java.lang.Object
- - com.harukizaemon.simian.StreamLoader

-     public final class StreamLoader
      extends java.lang.Object

  Loads files into a checker. Instances can be re-used to load multiple successive files into the same checker.
  Version:
    $Id: StreamLoader.java 3167 2008-03-01 10:13:40Z haruki_zaemon $
  Author:
    Simon Harris

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StreamLoader(Checker checker)` Constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `load(java.lang.String filename, java.io.InputStream stream)` Loads a specified stream.
    `void` | `load(java.lang.String filename, java.io.Reader stream)` Loads a specified stream.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StreamLoader

          public StreamLoader(Checker checker)

      Constructor.
      Parameters:
        `checker` - The checker to use.

  - ### Method Detail

    - #### load

          public void load(java.lang.String filename,
                  java.io.Reader stream)
                    throws java.io.IOException

      Loads a specified stream.
      Parameters:
        `filename` - The name of the file this stream represents.
        `stream` - The stream.
      Throws:
        `java.io.IOException` - if an error occurs loading the file.

    - #### load

          public void load(java.lang.String filename,
                  java.io.InputStream stream)
                    throws java.io.IOException

      Loads a specified stream.
      Parameters:
        `filename` - The name of the file this stream represents.
        `stream` - The stream.
      Throws:
        `java.io.IOException` - if an error occurs loading the file.

Copyright (c) 2003-2013 Simon Harris. All rights reserved.