checkClosed method

  1. @protected
void checkClosed()

Checks if the stream is closed and throws an exception if it is.

Implementation

@protected
void checkClosed() {
  if (_closed) {
    throw StreamClosedException();
  }
}