2014-02-25 10:28:22 +01:00
|
|
|
package com.rarchives.ripme.ripper;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
2014-02-27 04:54:44 +01:00
|
|
|
import java.net.MalformedURLException;
|
2014-02-25 10:28:22 +01:00
|
|
|
import java.net.URL;
|
|
|
|
|
2014-03-09 09:20:22 +01:00
|
|
|
/**
|
|
|
|
* I have no idea why I made this interface. Everything is captured within the AbstractRipper.
|
|
|
|
* Oh well, here's to encapsulation and abstraction! (raises glass)
|
2017-12-28 06:04:23 +01:00
|
|
|
*
|
|
|
|
* (cheers!)
|
2014-03-09 09:20:22 +01:00
|
|
|
*/
|
2017-10-24 16:33:28 +02:00
|
|
|
interface RipperInterface {
|
2017-05-18 07:44:51 +02:00
|
|
|
void rip() throws IOException;
|
|
|
|
boolean canRip(URL url);
|
|
|
|
URL sanitizeURL(URL url) throws MalformedURLException;
|
|
|
|
void setWorkingDir(URL url) throws IOException;
|
|
|
|
String getHost();
|
|
|
|
String getGID(URL url) throws MalformedURLException;
|
|
|
|
}
|