Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java ftpÉÏ´«ºÍÏÂÔØ

Ê×ÏÈ£¬½¨3¸ö½Ó¿Ú
FTPOperate.java:
public interface FTPOperate
{
public void execute(FTPBean entity);
}

FTPProxy.java:
public interface FTPProxy
{
public void connection();
public abstract void upload();

public abstract void download();
public void setEntity(FTPBean entity);
}
FTPBean.java:
public interface FTPBean
{
public abstract String getServerIP();
public abstract void setServerIP(String serverIP);
public abstract String getUser();
public abstract void setUser(String user);
public abstract String getPassword();
public abstract void setPassword(String password);
public abstract String getSrcFile();
public abstract void setSrcFile(String srcFile);
public abstract String getTargetFile();
public abstract void setTargetFile(String targetFile);
public abstract String getFtpPath();
public abstract void setFtpPath(String ftpPath);
}
È»ºó·Ö±ðʵÏÖÕâÁ½¸ö½Ó¿Ú£º
FTPProxyImpl.java:
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.SocketException;
import org.apache.commons.net.ftp.FTPClient;
import com.kt.iptv.common.ftp.FTPBean;
import com.kt.iptv.common.ftp.FTPProxy;
public class FTPProxyImpl implements FTPProxy
{
public FTPProxyImpl()
{
super();
ftpClient = new FTPClient();
}
public FTPProxyImpl(FTPBean entity)
{
this();
this.entity = entity;
}
private FTPBean entity;
private FTPClient ftpClient;
public void connection()
{
try
{
ftpClient.connect(entity.getServerIP());
ftpClient.login(entity.getUser(), entity.getPassword());
} catch (SocketException e)
{
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
}
}
public void download()
{
FileOutputStream fos = null;
try
{
String remoteFile = entity.getSrcFile();
String remoteFileName = "";
if (0 == remoteFile.lastIndexOf


Ïà¹ØÎĵµ£º

JavaÖеÄPatternÀàºÍMatcherÀà

¼ò¶øÑÔÖ®£¬ÕâÁ½¸öÀàÊÇÓÃÀ´ÀûÓÃÕýÔò±í´ïʽÑéÖ¤×Ö·û´®ÓÐЧÐԵġ£
PatternÀàÓÃÀ´¶¨ÒåÕýÔò±í´ïʽ¹æÔò£¬MatcherÀàÓÃÀ´¶¨ÒåÒªÑéÖ¤µÄ×Ö·û´®¡£
Ó÷¨£º
Pattern p = Pattern.compile("a*b"); 
Matcher m = p.matcher("aaaaab"); 
boolean b = m.matches();
µ±È»£¬Ò²¿ÉÒÔÖ±½ÓÓÃPatternÀàÖ±½ÓÑéÖ¤£¬Ó÷¨£º
boolean ......

Java enum ö¾ÙÀàÐÍ

Java enum ö¾ÙÀàÐÍ
ö¾ÙÀàÐÍÊÇÒ»¸ö³£Á¿¼¯ºÏµÄÊý¾ÝÀàÐÍ¡£
ÒòΪ¶¼Êdz£Á¿£¬ËùÒÔÒ»¸öö¾ÙÀàÐÍÖеÄ×Ö¶ÎÃû¶¼Òª´óд¡£
ÔÚJAVAÖУ¬Ã¶¾ÙÀàÐ͵Ķ¨ÒåÊÇͨ¹ý“enum“¹Ø¼ü×Ö½øÐеġ£ÀýÈçÄãÒª¶¨Òå
Ò»¸ö±íʾһ¸öÐÇÆÚµÄÿһÌìµÄö¾ÙÀàÐÍ£º
public enum Day {
  SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY ......

JavaʵÏÖµÄ3D¼ÆËã»úͼÐÎÀà¿âÓëÒýÇæ


3.1 ¿çƽ̨ÈýάͼÐοª·¢¹¤¾ß°üJava 3D
¹Ù·½Ö÷Ò³£ºhttps://java3d.dev.java.net/
Java 3DÑϸñ×ñÑ­“½¨Ä££­»æÖÆ”·ºÐÍ¡£³¡¾°Í¼£¨scene graph£©µÄ ³éÏóÄ£Ðͱ»ÓÃÀ´×éÖ¯ºÍά»¤ÐéÄⳡ¾°ÖеĿÉÊǶÔÏó¼°ÆäÐÐΪ¡£³¡¾°Í¼°üº¬ÁËÐéÄâͼÐÎÊÀ½çµÄÈ«²¿ÐÅÏ¢£¬Java 3D»æ ÖÆÒýÇæ»á¶Ô³¡¾°Í¼½øÐÐ×Ô¶¯»æÖÆ¡£
Java 3D is a scene g ......

Ò»¸öJava³ÌÐòÔ±Ó¦¸ÃÕÆÎÕµÄ10Ïî¼¼ÄÜ


1¡¢Óï·¨£º±ØÐë±È½ÏÊìϤ£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼­Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢javac¡¢javadoc¡¢javap¡¢javaw¡¢native2ascii¡¢serialver£¬Èç¹ûÕâЩÃüÁ ......

×îÖØÒªµÄ Java EE ×î¼Ñʵ¼ù


Ô­ÎÄÇë¿´
http://www.ibm.com/developerworks/cn/websphere/techjournal/0701_botzum/0701_botzum.html
ºóÐøÎÒ»á¶ÔÏÂÃæÌáµ½µÄ19µã½øÐÐһЩÊʵ±µÄÅú×¢,ËãÊÇ×Ô¼ºµÄ¶ÁÊé±Ê¼Ç
ÒýÑÔ
ÔÚ¹ýÈ¥µÄ¼¸ºõÕûÕûÊ®ÄêÖУ¬ÈËÃDZàдÁ˺ܶàÓÐ¹Ø Java™ Platform, Enterprise Edition (Java EE) ×î¼Ñʵ¼ùµÄÄÚÈÝ¡£ÏÖÔÚÓÐÊ®¶à±¾Êé¼®ºÍÊý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ