Class AbstractDriver

    • Constructor Detail

      • AbstractDriver

        public AbstractDriver()
        Creates an AbstractDriver with a NameCoder that does nothing.
      • AbstractDriver

        public AbstractDriver​(NameCoder nameCoder)
        Creates an AbstractDriver with a provided NameCoder.
        Parameters:
        nameCoder - the name coder for the target format
    • Method Detail

      • getNameCoder

        protected NameCoder getNameCoder()
      • createReader

        public HierarchicalStreamReader createReader​(java.net.URL in)
        Create the HierarchicalStreamReader with the stream parser reading from a URL. Depending on the parser implementation, some might take the URL as SystemId to resolve additional references.
        Specified by:
        createReader in interface HierarchicalStreamDriver
        Parameters:
        in - the URL defining the location with the data to parse
        Returns:
        the HierarchicalStreamReader
      • createReader

        public HierarchicalStreamReader createReader​(java.io.File in)
        Create the HierarchicalStreamReader with the stream parser reading from a File. Depending on the parser implementation, some might take the file path as SystemId to resolve additional references.
        Specified by:
        createReader in interface HierarchicalStreamDriver
        Parameters:
        in - the URL defining the location with the data to parse
        Returns:
        the HierarchicalStreamReader