Package com.ctc.wstx.io
Class SystemId
- java.lang.Object
-
- com.ctc.wstx.io.SystemId
-
public class SystemId extends java.lang.Object
Helper class that is used to defer construction ofURL
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SystemId(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.URL
asURL()
static SystemId
construct(java.lang.String systemId)
static SystemId
construct(java.lang.String systemId, java.net.URL url)
static SystemId
construct(java.net.URL url)
boolean
hasResolvedURL()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-