net.sourceforge.sstringsearch
Class State

java.lang.Object
  extended by net.sourceforge.sstringsearch.State
All Implemented Interfaces:
Serializable

public class State
extends Object
implements Serializable

Project: sstringsearch
File: State.java
Class: State
Created: 18. mars.. 2008

Description:

Holds the current state of the FSA. Can be used to continue search from a given state.

Version:
$Revision$
Author:
Kristian Andersen Email
See Also:
Serialized Form

Constructor Summary
State(StringBuilder currentBuffer, net.sourceforge.sstringsearch.internal.Node currentNode, net.sourceforge.sstringsearch.internal.Path path, int charactersRead, int currentCharacter)
          Constructor
 
Method Summary
 int getCharactersRead()
          Gets number of characters read
 StringBuilder getCurrentBuffer()
          Gets the current buffer
 int getCurrentCharacter()
          Gets the current character
 net.sourceforge.sstringsearch.internal.Node getCurrentNode()
          Gets the current node
 net.sourceforge.sstringsearch.internal.Path getPath()
          Gets the current path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

public State(StringBuilder currentBuffer,
             net.sourceforge.sstringsearch.internal.Node currentNode,
             net.sourceforge.sstringsearch.internal.Path path,
             int charactersRead,
             int currentCharacter)
Constructor

Parameters:
buffer - The current buffer
currentNode - The current node
path - The current path
charactersRead - Number of characters read
currentCharacter - The current character
Method Detail

getCurrentBuffer

public StringBuilder getCurrentBuffer()
Gets the current buffer


getCurrentNode

public net.sourceforge.sstringsearch.internal.Node getCurrentNode()
Gets the current node


getPath

public net.sourceforge.sstringsearch.internal.Path getPath()
Gets the current path


getCharactersRead

public int getCharactersRead()
Gets number of characters read


getCurrentCharacter

public int getCurrentCharacter()
Gets the current character



Copyright © 2005-2009 Kristian Andersen. All Rights Reserved.