|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.netbeans.jemmy.Bundle
public class Bundle
Load string resources from file.
Resources should be stored in name=value format.
BundleManager| Constructor Summary | |
|---|---|
Bundle()
Bunble constructor. |
|
| Method Summary | |
|---|---|
String |
getResource(String key)
Gets resource by key. |
void |
load(InputStream stream)
Loads resources from an input stream. |
void |
loadFromFile(String fileName)
Loads resources from a simple file. |
void |
loadFromJar(String fileName,
String entryName)
Loads resources from a file in a jar archive. |
void |
loadFromZip(String fileName,
String entryName)
Loads resources from a file in a zip archive. |
void |
print(PrintStream stream)
Prints bundle contents. |
void |
print(PrintWriter writer)
Prints bundle contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bundle()
| Method Detail |
|---|
public void load(InputStream stream)
throws IOException
stream - Stream to load resources from.
IOException
public void loadFromFile(String fileName)
throws IOException,
FileNotFoundException
fileName - Name of the file to load resources from.
IOException
FileNotFoundException
public void loadFromJar(String fileName,
String entryName)
throws IOException,
FileNotFoundException
fileName - Name of the jar archive.entryName - ?enryName? Name of the file to load resources from.
IOException
FileNotFoundException
public void loadFromZip(String fileName,
String entryName)
throws IOException,
FileNotFoundException,
ZipException
fileName - Name of the zip archive.entryName - ?enryName? Name of the file to load resources from.
ZipException
IOException
FileNotFoundExceptionpublic void print(PrintWriter writer)
writer - Writer to print data in.public void print(PrintStream stream)
stream - Stream to print data in.public String getResource(String key)
key - Resource key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||