protected void assertCanWrite(){
  if (_bufferStrategy == null) {
    throw new IllegalStateException();
  }
  if (!_bufferStrategy.isOpen()) {
    throw new IllegalStateException();
  }
  if (_bufferStrategy.isReadOnly()) {
    throw new IllegalStateException();
  }
  if (abortRequired.get()) {
    throw new AbortRequiredException();
  }
}

protected void assertCanWrite ( ) { if ( _bufferStrategy == null ) { throw new IllegalStateException ( ) ; } if ( ! _bufferStrategy . isOpen ( ) ) { throw new IllegalStateException ( ) ; } if ( _bufferStrategy . isReadOnly ( ) ) { throw new IllegalStateException ( ) ; } if ( abortRequired . get ( ) ) { throw new AbortRequiredException ( ) ; } }
assert that the journal is writable .
