ensureOpen

fun ensureOpen(failIfClosing: Boolean = true)

Used internally to throw an AlreadyClosedException if this IndexWriter has been closed (closed=true) or is in the process of closing (closing=true).

Calls .ensureOpen.

Throws

if this IndexWriter is closed