Package ipsk.net

Class URLContentLoader

  • All Implemented Interfaces:
    Worker, ProgressUpdate, java.lang.Runnable

    public class URLContentLoader
    extends ProgressWorker
    Asynchronous download engine for URL content.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Constructor Detail

      • URLContentLoader

        public URLContentLoader()
      • URLContentLoader

        public URLContentLoader​(java.lang.String threadName)
      • URLContentLoader

        public URLContentLoader​(java.net.URL url,
                                java.io.OutputStream outputStream)
        Constructor.
      • URLContentLoader

        public URLContentLoader​(java.net.URL url,
                                java.io.OutputStream outputStream,
                                java.lang.String threadName)
        Constructor.
    • Method Detail

      • getConnectTimeOut

        public java.lang.Integer getConnectTimeOut()
        Returns:
        the connectTimeOut, null if default of URLConnection is used
      • setConnectTimeOut

        public void setConnectTimeOut​(java.lang.Integer connectTimeOut)
        Parameters:
        connectTimeOut - the connectTimeOut to set, null to use default of URLConnection
      • getReadTimeout

        public java.lang.Integer getReadTimeout()
        Returns:
        the readTimeout, null if default of URLConnection is used
      • setReadTimeout

        public void setReadTimeout​(java.lang.Integer readTimeout)
        Parameters:
        readTimeout - the readTimeout to set
      • setTimeouts

        public void setTimeouts​(java.lang.Integer timeout)
      • isOpenConnectionInThread

        public boolean isOpenConnectionInThread()
        Returns:
        the openConnectionInThread
      • setOpenConnectionInThread

        public void setOpenConnectionInThread​(boolean openConnectionInThread)
        Parameters:
        openConnectionInThread - the openConnectionInThread to set
      • getUrl

        public java.net.URL getUrl()
      • setUrl

        public void setUrl​(java.net.URL url)
      • main

        public static void main​(java.lang.String[] args)
      • getOutputStream

        public java.io.OutputStream getOutputStream()
      • setOutputStream

        public void setOutputStream​(java.io.OutputStream outputStream)