Class URLLocation

  • All Implemented Interfaces:
    Location

    public class URLLocation
    extends FileLocation
    The URL Location.
    • Field Detail

      • url

        private final java.net.URL url
      • tempFilePrefix

        private final java.lang.String tempFilePrefix
      • tempFileSuffix

        private final java.lang.String tempFileSuffix
      • tempFileDeleteOnExit

        private final boolean tempFileDeleteOnExit
    • Constructor Detail

      • URLLocation

        public URLLocation​(java.net.URL url,
                           java.lang.String specification,
                           java.lang.String tempFilePrefix,
                           java.lang.String tempFileSuffix,
                           boolean tempFileDeleteOnExit)
        Parameters:
        url - The URL.
        specification - The spec.
        tempFilePrefix - the prefix.
        tempFileSuffix - The suffix.
        tempFileDeleteOnExit - delete on exit.
    • Method Detail

      • initFile

        protected void initFile()
                         throws java.io.IOException
        initialize file.
        Overrides:
        initFile in class FileLocation
        Throws:
        java.io.IOException - in case error.