public class Series
Series is a class that models an anime Series on themes.moe
It consists of a name, which is displayed on themes.moe,
and a List of class Theme
objects attributed to this series.
class Theme
Constructor and Description |
---|
Series(java.lang.String name,
java.util.List<net.namibsun.anitheme.dl.lib.parsing.Theme> themes)
Series is a class that models an anime Series on themes.moe
|
Modifier and Type | Method and Description |
---|---|
void |
download(java.lang.String target,
java.util.List<? extends net.namibsun.anitheme.dl.lib.parsing.FileTypes> fileTypes,
int retriesAllowed)
Downloads all theme songs of this series to a specified directory
Optionally converts the file into different formats
|
java.util.logging.Logger |
getLogger() |
java.lang.String |
getName()
The name of the series
|
java.util.List<net.namibsun.anitheme.dl.lib.parsing.Theme> |
getThemes()
The
|
java.lang.String |
toString()
Converts the
class Series object into a string for printing to the console |
public Series(java.lang.String name, java.util.List<net.namibsun.anitheme.dl.lib.parsing.Theme> themes)
Series is a class that models an anime Series on themes.moe
It consists of a name, which is displayed on themes.moe,
and a List of class Theme
objects attributed to this series.
name
- The name of the seriesthemes
- The List of class Theme
objects attributed to this seriesname
- The name of the seriesthemes
- The List of class Theme
objects attributed to this seriesclass Theme
public java.util.logging.Logger getLogger()
public void download(java.lang.String target, java.util.List<? extends net.namibsun.anitheme.dl.lib.parsing.FileTypes> fileTypes, int retriesAllowed)
Downloads all theme songs of this series to a specified directory Optionally converts the file into different formats
target
- The target directory in which to save the filesfileTypes
- The fileTypes to convert the file into. Defaults to only .webmretriesAllowed
- The amount of times the program may re-attempt a downloadpublic java.lang.String toString()
Converts the class Series
object into a string for printing to the console
The string is formatted like this:
Name: [Theme1, Theme2, Theme3, ...]
class Series
public java.lang.String getName()
The name of the series
public java.util.List<net.namibsun.anitheme.dl.lib.parsing.Theme> getThemes()
The
List of class Theme
objects attributed to this series
class Theme