Top Description Fields Constructors Methods
com.ctc.wstx.io

public Class SystemId

extends Object
Class Inheritance
Imports
java.io.IOException, java.net.URL, com.ctc.wstx.util.URLUtil

Helper class that is used to defer construction of URL to help with cases where real URL is not actually needed, and incoming System Id may not even resolve properly.

Note that class is meant to be accessed from a single thread, and is not designed as multi-thread safe. Specifically it is not to be used for caching or as a key, but strictly as System Id for processing of a single XML document.

Since
4.4

Field Summary

Modifier and TypeField and Description
protected String
protected URL

Constructor Summary

AccessConstructor and Description
protected
SystemId(String systemId, URL url)

Method Summary

Modifier and TypeMethod and Description
public URL
public static SystemId
construct(String systemId)

public static SystemId
public static SystemId
construct(String systemId, URL url)

public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

mSystemIdback to summary
protected String mSystemId
mURLback to summary
protected URL mURL

Constructor Detail

SystemIdback to summary
protected SystemId(String systemId, URL url)

Method Detail

asURLback to summary
public URL asURL() throws IOException
constructback to summary
public static SystemId construct(String systemId)
constructback to summary
public static SystemId construct(URL url)
constructback to summary
public static SystemId construct(String systemId, URL url)
hasResolvedURLback to summary
public boolean hasResolvedURL()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override