de.scheisseichfindemalkeinen.hoster
Class HostSortImages

java.lang.Object
  extended by de.scheisseichfindemalkeinen.hoster.Hoster
      extended by de.scheisseichfindemalkeinen.hoster.Host
          extended by de.scheisseichfindemalkeinen.hoster.HostSortImages
All Implemented Interfaces:
IHoster

public class HostSortImages
extends Host
implements IHoster

Host-class for images that are on the harddisk and should be sorted. Because there is a button on the GUI which allows the user to sort files on the harddisk, i decided to move this class in the program itself. So the check if this host-class exists is not needed anymore.

Version:
0.5

Field Summary
static java.lang.String NAME
          Name
static java.lang.String VERSION
          Version
 
Constructor Summary
HostSortImages()
          Constructor
 
Method Summary
 java.lang.String getFilenameFromURL(java.lang.String url)
          Returns the filename from the URL This method is to display a nice filename in the Download-Selection-Dialog
 java.lang.String getName()
          Returns the name of this class
 java.lang.String getURL(java.lang.String url)
          Get-Method
 java.lang.String getVersion()
          Returns the version of this class
 boolean isFromThisHoster(java.lang.String url)
          Check if the host-class will parse the URL
 void parseURLAndFilename(URLParseObject upo)
          Parses the URL and returns the direct URL
 java.lang.String toString()
           
 
Methods inherited from class de.scheisseichfindemalkeinen.hoster.Hoster
isDeveloper, removeDuplicateEqualsMethod, setDeveloper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Version

See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Name

See Also:
Constant Field Values
Constructor Detail

HostSortImages

public HostSortImages()
Constructor

Method Detail

getURL

public java.lang.String getURL(java.lang.String url)
Get-Method

Parameters:
url - URL
Returns:
URL

isFromThisHoster

public boolean isFromThisHoster(java.lang.String url)
Description copied from interface: IHoster
Check if the host-class will parse the URL

Specified by:
isFromThisHoster in interface IHoster
Parameters:
url - Container-URL
Returns:
True/False

getVersion

public java.lang.String getVersion()
Description copied from interface: IHoster
Returns the version of this class

Specified by:
getVersion in interface IHoster
Returns:
Version

getName

public java.lang.String getName()
Description copied from interface: IHoster
Returns the name of this class

Specified by:
getName in interface IHoster
Returns:
Name

getFilenameFromURL

public java.lang.String getFilenameFromURL(java.lang.String url)
Description copied from interface: IHoster
Returns the filename from the URL This method is to display a nice filename in the Download-Selection-Dialog

Specified by:
getFilenameFromURL in interface IHoster
Parameters:
url - Container-URL
Returns:
Filename

parseURLAndFilename

public void parseURLAndFilename(URLParseObject upo)
                         throws HostException
Description copied from interface: IHoster
Parses the URL and returns the direct URL

Specified by:
parseURLAndFilename in interface IHoster
Parameters:
upo - URLParseObject
Throws:
HostException

toString

public java.lang.String toString()
Specified by:
toString in class Hoster