Package gnu.kawa.xml

Class Document


  • public class Document
    extends java.lang.Object
    Implement the XQuery function 'document'.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Document document  
    • Constructor Summary

      Constructors 
      Constructor Description
      Document()  
    • Field Detail

      • document

        public static final Document document
    • Constructor Detail

      • Document

        public Document()
    • Method Detail

      • parse

        public static void parse​(java.lang.Object name,
                                 Consumer out)
                          throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • parse

        public static KDocument parse​(java.lang.Object uri)
                               throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • clearLocalCache

        public static void clearLocalCache()
        Clear the thread-local uri-to-document map.
      • clearSoftCache

        public static void clearSoftCache()
        Clear the global uri-to-document "soft" cache.
      • parseCached

        public static KDocument parseCached​(java.lang.Object uri)
                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • parseCached

        public static KDocument parseCached​(gnu.kawa.io.Path uri)
                                     throws java.lang.Throwable
        Throws:
        java.lang.Throwable