Sdílet prostřednictvím


Formatter.Close Method

Definition

Closes this formatter.

[Android.Runtime.Register("close", "()V", "")]
public void Close ();
[<Android.Runtime.Register("close", "()V", "")>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Remarks

Closes this formatter. If the destination implements the java.io.Closeable interface, its close method will be invoked.

Closing a formatter allows it to release resources it may be holding (such as open files). If the formatter is already closed, then invoking this method has no effect.

Attempting to invoke any methods except #ioException() in this formatter after it has been closed will result in a FormatterClosedException.

Java documentation for java.util.Formatter.close().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to