Package com.ctc.wstx.io
Class SystemId
- java.lang.Object
-
- com.ctc.wstx.io.SystemId
-
public class SystemId extends java.lang.ObjectHelper class that is used to defer construction ofURLto 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSystemId(java.lang.String systemId, java.net.URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLasURL()static SystemIdconstruct(java.lang.String systemId)static SystemIdconstruct(java.lang.String systemId, java.net.URL url)static SystemIdconstruct(java.net.URL url)booleanhasResolvedURL()java.lang.StringtoString()
-
-
-
Method Detail
-
construct
public static SystemId construct(java.lang.String systemId)
-
construct
public static SystemId construct(java.net.URL url)
-
construct
public static SystemId construct(java.lang.String systemId, java.net.URL url)
-
asURL
public java.net.URL asURL() throws java.io.IOException- Throws:
java.io.IOException
-
hasResolvedURL
public boolean hasResolvedURL()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-