Formatter.Close Method

Definition

Closes this formatter.

C#
[Android.Runtime.Register("close", "()V", "")]
public void Close ();

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35