Package ipsk.net

Class UploadFile

  • All Implemented Interfaces:
    java.io.Serializable

    public class UploadFile
    extends Upload
    implements java.io.Serializable
    Holds a File for upload to an URL.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    See Also:
    Serialized Form
    • Field Detail

      • file

        protected java.io.File file
    • Constructor Detail

      • UploadFile

        public UploadFile()
      • UploadFile

        public UploadFile​(java.io.File vb,
                          java.net.URL url)
        Create an upload object. The data to upload is hold in the file. The data will be uploaded to the given URL.
        Parameters:
        vb - the data
        url - URL to upload to
    • Method Detail

      • getFile

        public java.io.File getFile()
        Get the file.
        Returns:
        file
      • setFile

        public void setFile​(java.io.File f)
        Set the file.
        Parameters:
        f - file
      • getLength

        public long getLength()
        Specified by:
        getLength in class Upload
      • delete

        public void delete()
        Deletes the file.
        Specified by:
        delete in class Upload
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Upload
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Upload
      • main

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