Package ptolemy.util

Class FileUtilities.StreamAndURL

  • Enclosing class:
    FileUtilities

    public static class FileUtilities.StreamAndURL
    extends java.lang.Object
    A class that contains an InputStream and a URL so that we don't have to follow redirects twice.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamAndURL​(java.io.InputStream stream, java.net.URL url)
      Create an object containing an InputStream and a URL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream stream()
      Return the stream.
      java.net.URL url()
      Return the url.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamAndURL

        public StreamAndURL​(java.io.InputStream stream,
                            java.net.URL url)
        Create an object containing an InputStream and a URL.
        Parameters:
        stream - The stream.
        url - The url.
    • Method Detail

      • stream

        public java.io.InputStream stream()
        Return the stream.
        Returns:
        The stream.
      • url

        public java.net.URL url()
        Return the url.
        Returns:
        The url.