public final class GConnector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.io.InputStream |
getInput(java.lang.String filePath)
Return InputStream pointed on specific file in graphic archive
WARNING If gArch will be closed in these method then returned InputStrem will be closed too
|
static org.newdawn.slick.Image |
getObjectPortrait(java.lang.String fileName)
Returns image from object/portrait dir in graphic archive
|
static org.newdawn.slick.Image |
getPortrait(java.lang.String fileName)
Return image from portrait data dir
|
static java.util.List<org.newdawn.slick.Image> |
getPortraits()
This static method reads file with image names in portrait folder and adds these files to Image List
|
public static java.io.InputStream getInput(java.lang.String filePath) throws java.io.IOException
filePath
- Path to file in gDatajava.io.IOException
- If path is wrongpublic static org.newdawn.slick.Image getPortrait(java.lang.String fileName) throws org.newdawn.slick.SlickException
fileName
- Name of img fileorg.newdawn.slick.SlickException
public static org.newdawn.slick.Image getObjectPortrait(java.lang.String fileName) throws org.newdawn.slick.SlickException, java.io.IOException
fileName
- Name of img fileorg.newdawn.slick.SlickException
java.io.IOException
public static java.util.List<org.newdawn.slick.Image> getPortraits() throws java.io.FileNotFoundException, org.newdawn.slick.SlickException
java.io.FileNotFoundException
org.newdawn.slick.SlickException