|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.jqhome.jwps.util.EAUtil
This utility will allow you to carry out various operations on OS/2 EAs (extended attributes) from
the command line. The syntax is as follows:
java net.jqhome.jwps.util.EAUtil -s|-a|-r|-d dataFile eaFile
where the options are
| Constructor Summary | |
EAUtil()
|
|
| Method Summary | |
static void |
appendEAs(java.io.File dataFile,
java.io.File eaFile)
Appends the EAs in the eaFile to the dataFile. |
static void |
deleteEAs(java.io.File dataFile)
Deletes the EAs of the dataFile. |
static void |
main(java.lang.String[] args)
|
static void |
replaceEAs(java.io.File dataFile,
java.io.File eaFile)
Appends the EAs in the eaFile to the dataFile. |
static void |
saveEAs(java.io.File dataFile,
java.io.File eaFile)
Saves the EAs of the data file to the eaFile. |
static void |
usage()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EAUtil()
| Method Detail |
public static void main(java.lang.String[] args)
public static void saveEAs(java.io.File dataFile,
java.io.File eaFile)
public static void saveEAs(File dataFile, File eaFile){
try {
FileEAs feas = new FileEAs(dataFile);
XMLDocumentFactory.serialize(feas.getAllEAs(), eaFile);
} catch (JWPException jwpx) {
System.out.println("Error: there was a problem saving the EAs. The message is as follows:\n" + jwpx.getMessage());
}
}
public static void appendEAs(java.io.File dataFile,
java.io.File eaFile)
public static void appendEAs(File dataFile, File eaFile){
try {
FileEAs feas = new FileEAs(dataFile);
EAHashtable eaHT = XMLDocumentFactory.deserialize(eaFile);
feas.setEAs(eaHT);
} catch (JWPException jwpx) {
System.out.println("Error: there was a problem saving the EAs. The message is as follows:\n" + jwpx.getMessage());
}
}
public static void replaceEAs(java.io.File dataFile,
java.io.File eaFile)
public static void replaceEAs(File dataFile, File eaFile){
try {
FileEAs feas = new FileEAs(dataFile);
feas.removeAllEAs();
EAHashtable eaHT = XMLDocumentFactory.deserialize(eaFile);
feas.setEAs(eaHT);
} catch (JWPException jwpx) {
System.out.println("Error: there was a problem saving the EAs. The message is as follows:\n" + jwpx.getMessage());
}
}
public static void deleteEAs(java.io.File dataFile)
public static void deleteEAs(File dataFile){
try {
FileEAs feas = new FileEAs(dataFile);
feas.removeAllEAs();
} catch (JWPException jwpx) {
System.out.println("Error: there was a problem saving the EAs. The message is as follows:\n" + jwpx.getMessage());
}
}
public static void usage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||