|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.wurfl.core.resource.FileLoader
public final class FileLoader
Loads a file. The file can be compresses by gzip or zip. In case of zip, the first entry will be processed.
| Constructor Summary | |
|---|---|
FileLoader(File file)
Build resource by File. |
|
FileLoader(InputStream stream,
String fileName)
Build resource by InputStream. |
|
FileLoader(String path)
Build Resource by path. |
|
FileLoader(URI uri)
Build resource by URI. |
|
| Method Summary | |
|---|---|
static URI |
createURI(String path)
Creates a URI from the given String. |
String |
getInfo()
If this resource is created using InputStream, the info will return Stream resource'. |
InputStream |
getStream()
|
boolean |
isReloadable()
Return if this resource can be reloaded. |
protected InputStream |
openInputStream(URI uri)
Opens the InputStream by giving URI. |
void |
releaseAll()
|
void |
resetStream()
|
static URI |
toURI(String location)
Deprecated. use createURI(String) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileLoader(String path)
path - The path of source file.public FileLoader(File file)
file - The source Filepublic FileLoader(URI uri)
uri - The source URI
public FileLoader(InputStream stream,
String fileName)
stream - The source stream.| Method Detail |
|---|
public String getInfo()
public boolean isReloadable()
public static URI createURI(String path)
throws URISyntaxException
URISyntaxException
public static URI toURI(String location)
throws URISyntaxException
createURI(String)
location - Location to convert.
URISyntaxExceptionprotected InputStream openInputStream(URI uri)
uri - The given URI
public void releaseAll()
public InputStream getStream()
public void resetStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||