protected boolean checkState ( final State [ ] validStates ) { for ( final State cur : validStates ) { if ( cur == getState ( ) ) { return true ; } } return false ; }
Checks if this writer s current state is in the list of given states .