org.sadun.util
Class TelnetInputStreamConsumer.StringEndBasedCriterium

java.lang.Object
  extended byorg.sadun.util.TelnetInputStreamConsumer.StringEndBasedCriterium
All Implemented Interfaces:
TelnetInputStreamConsumer.Criterium
Enclosing class:
TelnetInputStreamConsumer

public static class TelnetInputStreamConsumer.StringEndBasedCriterium
extends java.lang.Object
implements TelnetInputStreamConsumer.Criterium

A criterium which holds if a certain string is found at the end of the input.

Version:
1.0
Author:
Cristiano Sadun

Constructor Summary
TelnetInputStreamConsumer.StringEndBasedCriterium(java.lang.String endString)
           
 
Method Summary
 boolean holds(java.lang.String input)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TelnetInputStreamConsumer.StringEndBasedCriterium

public TelnetInputStreamConsumer.StringEndBasedCriterium(java.lang.String endString)
Method Detail

holds

public boolean holds(java.lang.String input)
Specified by:
holds in interface TelnetInputStreamConsumer.Criterium

toString

public java.lang.String toString()