Object-oriented Parser System
v3.6

scanner
Class ClonedBuffer

Object
  extended by Buffer
      extended by ClonedBuffer

public class ClonedBuffer
extends Buffer

Input provider, allows access to a string using immutable Inputs. This class is intended for functional programming. Not thread-safe.


Nested Class Summary
protected  class ClonedBuffer.InputImpl
          wrap an immutable current character offset.
 
Field Summary
 
Fields inherited from class Buffer
buffer, length
 
Constructor Summary
protected ClonedBuffer(StringBuilder stringBuilder)
          create from a StringBuilder.
 
Method Summary
static Input newInput(String string)
          convenience method: create an initial wrapper for a string.
static Input newInput(StringBuilder stringBuilder)
          create an initial wrapper for a StringBuilder.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClonedBuffer

protected ClonedBuffer(StringBuilder stringBuilder)
create from a StringBuilder.

Method Detail

newInput

public static Input newInput(StringBuilder stringBuilder)
create an initial wrapper for a StringBuilder.


newInput

public static Input newInput(String string)
convenience method: create an initial wrapper for a string.



(c) 2008 Axel T. Schreiner