public class PokePasteReader
extends java.lang.Object
from(File)
or from(String)
Modifier and Type | Method and Description |
---|---|
java.util.List<Pokemon> |
build()
Creates a list of Pokemon from the URL or file that has been read
|
static PokePasteReader |
from(java.io.File file)
Reads a pokepaste from the given file
|
static PokePasteReader |
from(java.lang.String paste)
Reads a pokepaste from the URL provided - will append '/raw' if not already there
|
java.util.List<java.lang.String> |
getLines()
Reads the lines from the pokepaste
|
public java.util.List<java.lang.String> getLines()
public java.util.List<Pokemon> build() throws PokemonImportException
PokemonImportException
@Nullable public static PokePasteReader from(java.lang.String paste)
paste
- The paste URL@Nullable public static PokePasteReader from(java.io.File file)
file
- The file to read