Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## things.thinger.io
Class StreamSourceFromString

    java.lang.Object
      things.thinger.io.StreamSourceFromString

All Implemented Interfaces:
  StreamSource

    public class StreamSourceFromString

extends java.lang.Object
implements StreamSource

Implements a character source from a string.

Version:
  1.0

  Version History

      EPG - Initial - 15 FEB 05

Author:
  Erich P. Gatejen

Constructor Summary
`StreamSourceFromString(java.lang.String source)` Constructor.

Method Summary
`boolean` | `hasMore()` Does the source have more to get?
`int` | `next()` Get the next character.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### StreamSourceFromString

    public StreamSourceFromString(java.lang.String source)

  Constructor. Pass the string to source.

  Parameters:
    `source` - must give it the source

Method Detail

### next

    public int next()
             throws java.lang.Exception

  Get the next character. It'll throw an exception if there is nothing left.

  Specified by:
    `next` in interface `StreamSource`
  Returns:
    the next character
  Throws:
    `java.lang.Exception`

### hasMore

    public boolean hasMore()
                    throws java.lang.Exception

  Does the source have more to get?

  Specified by:
    `hasMore` in interface `StreamSource`
  Returns:
    true if it does, otherwise false.
  Throws:
    `java.lang.Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Things.