public interface

Closeable

implements Closeable
com.atlassian.jira.util.Closeable
Known Indirect Subclasses

Class Overview

A Closeable is a source or destination of data that can be closed. The close method is invoked to release resources that the object is holding (such as open files).

Straight copy of the java.util.Closeable interface except it doesn't throw IOException

Summary

Fields
public static final Consumer<Closeable> CLOSE Simple Consumer implementation that closes all elements.
Public Methods
void close()
Closes this stream and releases any system resources associated with it.
[Expand]
Inherited Methods
From interface java.io.Closeable

Fields

public static final Consumer<Closeable> CLOSE

Simple Consumer implementation that closes all elements.

Public Methods

public void close ()

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

Throws
RuntimeIOException if an I/O error occurs