次の方法で共有


InputSource.ByteStream Property

Definition

Get the byte stream for this input source. -or- Set the byte stream for this input source.

public virtual System.IO.Stream? ByteStream { [Android.Runtime.Register("getByteStream", "()Ljava/io/InputStream;", "GetGetByteStreamHandler")] get; [Android.Runtime.Register("setByteStream", "(Ljava/io/InputStream;)V", "GetSetByteStream_Ljava_io_InputStream_Handler")] set; }
[<get: Android.Runtime.Register("getByteStream", "()Ljava/io/InputStream;", "GetGetByteStreamHandler")>]
[<set: Android.Runtime.Register("setByteStream", "(Ljava/io/InputStream;)V", "GetSetByteStream_Ljava_io_InputStream_Handler")>]
member this.ByteStream : System.IO.Stream with get, set

Property Value

The byte stream, or null if none was supplied.

Attributes

Remarks

Property getter documentation:

Get the byte stream for this input source.

The getEncoding method will return the character encoding for this byte stream, or null if unknown.

Java documentation for org.xml.sax.InputSource.getByteStream().

Property setter documentation:

Set the byte stream for this input source.

The SAX parser will ignore this if there is also a character stream specified, but it will use a byte stream in preference to opening a URI connection itself.

If the application knows the character encoding of the byte stream, it should set it with the setEncoding method.

Java documentation for org.xml.sax.InputSource.setByteStream(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.

Applies to

See also