XPϵͳÏÂJavaÐÞ¸ÄÎļþ»òÎļþ¼ÐÊôÐԵĴúÂë¡£
2009-11-09 15:33:36
ÎļþÊôÐÔÅäÖÃÀà
package cn.sist.file;
public class FileProperty {
private int sysProperty = 0;
private int hiddenProperty = 0;
private int readProperty = 0;
private int arriveProperty = 0;
private boolean changeAll = false;
public FileProperty setChangeAll(boolean changeAll){
this.changeAll = changeAll;
return this;
}
public boolean getChangeAll(){
return this.changeAll;
}
protected int getArriveProperty() {
return arriveProperty;
}
public FileProperty addArriveProperty() {
this.arriveProperty = 1;
return this;
}
public FileProperty removeArriveProperty(){
this.arriveProperty = 2;
return this;
}
protected int getHiddenProperty() {
return hiddenProperty;
}
public FileProperty addHiddenProperty() {
this.hiddenProperty = 1;
return this;
}
public FileProperty removeHiddenProperty(){
this.hiddenProperty = 2;
return this;
}
protected int getReadProperty() {
return readProperty;
}
public FileProperty addReadProperty() {
this.readProperty = 1;
return this;
}
public FileProperty removeReadProperty(){
this.readProperty = 2;
return this;
}
protected int getSysProperty() {
return sysProperty;
}
public FileProperty addSysProperty() {
this.sysProperty = 1;
return this;
}
public FileProperty removeSysProperty(){
this.sysProperty = 2;
return this;
}
}
ÎļþÐÞ¸ÄÀà
package cn.sist.file;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
public class FilePropertyChange {
private static final String xpCommand = "cmd /c attrib";
private static final String[] xpSysProperty = {"","+s","-s"};
private static final String[] xpHiddenProperty = {"","+h","-h"};
private static final String[] xpArriveProperty = {"","+a","-a"};
private static final String[] xpReadOnlyProperty = {"","+r","-r"};
/*
* defaultFileProperty onl
Ïà¹ØÎĵµ£º
¡¡Java Card Ó¦ÓóÌÐòµÄÔªËØ
¡¡¡¡Çë¼Çס£¬Java Card Ó¦ÓóÌÐò²¢²»ÊǶÀÁ¢µÄ£¬¶øÊǶ˵½¶ËÓ¦ÓóÌÐòµÄÒ»²¿·Ö:
ͼ 1. Java Card Ó¦ÓóÌÐòµÄµäÐÍ×é¼þ
¡¡¡¡Java Card Ó¦ÓóÌÐòͨ³£ÓÉÒÔϲ¿·Ö×é³É£º
¡¡¡¡Ìṩºǫ́·þÎñ£¨ÀýÈç±£´æÔÚÊý¾Ý¿âÖеݲȫ»òÕßµç×ÓÖ§¸¶ÐÅÏ¢£©·ÃÎ浀 ºǫ́ӦÓóÌÐò¡£ÈçºÎ¿ª·¢ºǫ́ӦÓóÌÐò³¬³öÁ˱¾Îĵ ......
Ò»¸öÓÉ Carol Hamer дµÄ±È½ÏÓдú±íÐÔµÄÔ´Â룬×÷ÕßÈ«Á¦ÍƼö£¬ÓÈÆäÊǶÔÓÚûÓÐ J2ME ¿ª·¢¾ÑéµÄÅóÓÑ¡£×Ô¼º¶¯ÊÖÇóöÒÔÏÂÌù³öµÄ Hello.java ºÍ HelloCanvas.java Ô´Â룬²¢ÔËÐУ¬ÓÃÐÄÌå»áһϡ£ÏàÐÅÄãÀí½âÁË´ËÔ´ÂëÖ®ºó£¬¼´¿É²½Èë J2ME ¿ª·¢¡£
×¢ÊͶ¼ÔÚÔ´ÂëÀÔËÐл·¾³×Ô¼ºÅ䣬×Ô¼º¶¯ÊÖ¿´ÔËÐÐЧ¹û£¬Àí½âÖ®ºó£¬È»ºó¶¯ÊÖÐÞ ......
java Ñ»·´òÓ¡³öij¶ÔÏóËùÔÚÀàµÄÀàÃûºÍ·½·¨
public class A {
public void b(){}
public void c(){}
public void d(){}
public void e(){}
}
import java.lang.reflect.*;
public class StaticTest {
public static void test(Object obj)
{
Class myclass = obj.getClass();
//System.out.prin ......