다음을 통해 공유


InputSource.SystemId Property

Definition

Get the system identifier for this input source. -or- Set the system identifier for this input source.

public virtual string? SystemId { [Android.Runtime.Register("getSystemId", "()Ljava/lang/String;", "GetGetSystemIdHandler")] get; [Android.Runtime.Register("setSystemId", "(Ljava/lang/String;)V", "GetSetSystemId_Ljava_lang_String_Handler")] set; }
[<get: Android.Runtime.Register("getSystemId", "()Ljava/lang/String;", "GetGetSystemIdHandler")>]
[<set: Android.Runtime.Register("setSystemId", "(Ljava/lang/String;)V", "GetSetSystemId_Ljava_lang_String_Handler")>]
member this.SystemId : string with get, set

Property Value

The system identifier, or null if none was supplied.

Attributes

Remarks

Property getter documentation:

Get the system identifier for this input source.

The getEncoding method will return the character encoding of the object pointed to, or null if unknown.

If the system ID is a URL, it will be fully resolved.

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

Property setter documentation:

Set the system identifier for this input source.

The system identifier is optional if there is a byte stream or a character stream, but it is still useful to provide one, since the application can use it to resolve relative URIs and can include it in error messages and warnings (the parser will attempt to open a connection to the URI only if there is no byte stream or character stream specified).

If the application knows the character encoding of the object pointed to by the system identifier, it can register the encoding using the setEncoding method.

If the system identifier is a URL, it must be fully resolved (it may not be a relative URL).

Java documentation for org.xml.sax.InputSource.setSystemId(java.lang.String).

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