Class SystemId


  • public class SystemId
    extends java.lang.Object
    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

      Fields 
      Modifier and Type Field Description
      protected java.lang.String mSystemId  
      protected java.net.URL mURL  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SystemId​(java.lang.String systemId, java.net.URL url)  
    • Field Detail

      • mURL

        protected java.net.URL mURL
      • mSystemId

        protected java.lang.String mSystemId
    • Constructor Detail

      • SystemId

        protected SystemId​(java.lang.String systemId,
                           java.net.URL url)
    • 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 class java.lang.Object