URLConnection.GuessContentTypeFromStream(Stream) 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.
Tries to determine the type of an input stream based on the characters at the beginning of the input stream.
[Android.Runtime.Register("guessContentTypeFromStream", "(Ljava/io/InputStream;)Ljava/lang/String;", "")]
public static string? GuessContentTypeFromStream (System.IO.Stream? is);
[<Android.Runtime.Register("guessContentTypeFromStream", "(Ljava/io/InputStream;)Ljava/lang/String;", "")>]
static member GuessContentTypeFromStream : System.IO.Stream -> string
Parameters
- is
- Stream
an input stream that supports marks.
Returns
a guess at the content type, or null if none
can be determined.
- Attributes
Exceptions
if an I/O error occurs while reading from the input stream.
Remarks
Java documentation for java.net.URLConnection.guessContentTypeFromStream(java.io.InputStream).
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.