PrintStream.Format Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Format(String, Object[]) |
Writes a formatted string to this output stream using the specified format string and arguments. |
Format(Locale, String, Object[]) |
Writes a formatted string to this output stream using the specified format string and arguments. |
Format(String, Object[])
Writes a formatted string to this output stream using the specified format string and arguments.
[Android.Runtime.Register("format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;", "GetFormat_Ljava_lang_String_arrayLjava_lang_Object_Handler")]
public virtual Java.IO.PrintStream? Format (string? format, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;", "GetFormat_Ljava_lang_String_arrayLjava_lang_Object_Handler")>]
abstract member Format : string * Java.Lang.Object[] -> Java.IO.PrintStream
override this.Format : string * Java.Lang.Object[] -> Java.IO.PrintStream
Parameters
- format
- String
A format string as described in <a href="../util/Formatter.html#syntax">Format string syntax</a>
- args
- Object[]
Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
<cite>The Java™ Virtual Machine Specification</cite>.
The behaviour on a
null
argument depends on the <a
href="../util/Formatter.html#syntax">conversion</a>.
Returns
This output stream
- Attributes
Remarks
Java documentation for java.io.PrintStream.format(java.lang.String, java.lang.Object)
.
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
Format(Locale, String, Object[])
Writes a formatted string to this output stream using the specified format string and arguments.
[Android.Runtime.Register("format", "(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;", "GetFormat_Ljava_util_Locale_Ljava_lang_String_arrayLjava_lang_Object_Handler")]
public virtual Java.IO.PrintStream? Format (Java.Util.Locale? l, string? format, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("format", "(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;", "GetFormat_Ljava_util_Locale_Ljava_lang_String_arrayLjava_lang_Object_Handler")>]
abstract member Format : Java.Util.Locale * string * Java.Lang.Object[] -> Java.IO.PrintStream
override this.Format : Java.Util.Locale * string * Java.Lang.Object[] -> Java.IO.PrintStream
Parameters
- l
- Locale
- format
- String
A format string as described in <a href="../util/Formatter.html#syntax">Format string syntax</a>
- args
- Object[]
Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
<cite>The Java™ Virtual Machine Specification</cite>.
The behaviour on a
null
argument depends on the <a
href="../util/Formatter.html#syntax">conversion</a>.
Returns
This output stream
- Attributes
Remarks
Java documentation for java.io.PrintStream.format(java.lang.String, java.lang.Object)
.
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.