Jacson

de.spieleck.app.jacson.select
Class SimpleResult

java.lang.Object
  extended byde.spieleck.app.jacson.select.SimpleResult
All Implemented Interfaces:
SelectionResult

public class SimpleResult
extends java.lang.Object
implements SelectionResult

Simple Holder to provide SelectionResult Objects. Note: The strange set("everything") is taylored for garbage reducing object recycling: Use one Result over and over and over.

Author:
fsn

Constructor Summary
SimpleResult()
           
 
Method Summary
 java.lang.String getChunk()
           
 int getEnd()
           
 int getStart()
           
 void set(int from, int to, java.lang.String piece)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResult

public SimpleResult()
Method Detail

set

public void set(int from,
                int to,
                java.lang.String piece)

getChunk

public java.lang.String getChunk()
Specified by:
getChunk in interface SelectionResult

getStart

public int getStart()
Specified by:
getStart in interface SelectionResult

getEnd

public int getEnd()
Specified by:
getEnd in interface SelectionResult

Spieleck

Copyleft 2002 spieleck.de.