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

ÎÒµÄJavaÑéÖ¤¹¤¾ßÀà

package com;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;
public class RegexUtil {
private static Pattern PATTERN_EMAIL = Pattern
.compile("^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)+$");// ÓʼþµØÖ·
private static Pattern PATTERN_TEL = Pattern
.compile("^([0-9]{3,4}-)?[0-9]{7,8}$");// ¹Ì¶¨µç»°
private static Pattern PATTERN_MOBILE = Pattern
.compile("^(\\+86)?0?1[3|5]\\d{9}$");// Òƶ¯µç»°
private static Pattern PATTERN_ALPHA = Pattern.compile("^[A-Za-z]+$");// ×Öĸ
private static Pattern PATTERN_DIGITAL = Pattern.compile("^\\d+$");// Êý×Ö
private static Pattern PATTERN_CHINESE = Pattern
.compile("^[\\u4E00-\\u9FA5]+$");// ÖÐÎÄ
private static Pattern PATTERN_IDCARD_15 = Pattern
.compile("^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$");// 15λÉí·ÝÖ¤¸ñʽ
private static Pattern PATTERN_IDCARD_18 = Pattern
.compile("^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}[\\d|x|X]$");// 18λÉí·ÝÖ¤¸ñʽ
private static Pattern PATTERN_IP = Pattern
.compile("^((00\\d|1?\\d?\\d|(2([0-4]\\d|5[0-5])))\\.){3}(00\\d|1?\\d?\\d|(2([0-4]\\d|5[0-5])))$");// IP¸ñʽ
private static Pattern PATTERN_TIME = Pattern
.compile("((0?[0-9])|([1-2][0-3]))\\:([0-5]?[0-9])(\\:([0-5]?[0-9]))");// ʱ¼ä¸ñʽ
private static Pattern PATTERN_REPEAT = Pattern.compile(".*(.).*\\1.*");// Öظ´×Ö·û¸ñʽ
public RegexUtil() {
}
/**
* УÑéemail¸ñʽ
*
* @param email
* email
* @return
*/
public static boolean isEmail(String email) {
if (email == null)
return false;
else
return PATTERN_EMAIL.matcher(email).matches();
}
public static boolean isTelephone(String telephone) {
if (telephone == null)
return false;
else
return PATTERN_TEL.matcher(telephone).matches();
}
public static boolean isMobile(String mobile) {
if (mobile == null)
return false;
else
return PATTERN_MOBILE.matcher(mobile).matches();
}
public static


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

IBM FileNet Content Java API ¼ò½é

2008 Äê 6 ÔÂ 24 ÈÕ
Ô­ÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......

java io ѧϰ


½ÚµãÁ÷
¸¸Àà
InputStream
OutputStream
Reader
Writer
Îļþ
FileInputStream
FileOutputStream
FileReader
FileWriter
Êý×é
ByteArrayInputStream
ByteOutputStream
CharArrayReader
CharArrayWriter
×Ö·û´®
ÎÞ
ÎÞ
StringReader
StringWriter
¹ÜµÀ
PipedInputStream
PipedOutputStream
PipedRead ......

javaѧϰС¼Ç¶þ

×î½üÒ»Ö±¾À½áÓÚJavaµÄIOÖУ¬¸Õ¿ªÊ¼¿´µÄһͷÎíË®£¬¸÷ÖÖStream£¬¸÷ÖÖReader£¬¸÷ÖÖBuffer¡£headache£¡
1£¬×ܵÄÀ´Ëµ¾Í°üÀ¨InputStream ºÍ OutputStream Á½¸ö£¬¾ßÌåÓ¦¸ÃÓò»µ½£¬¶¼ÊÇÓÃËûÃǵÄÅÉÉúÀà¡£
2£¬File ÀàµÄObject ¿ÉÒÔÊÇÒ»¸öÎļþ£¬Ò²¿ÉÒÔÊÇÒ»¸ödirectory/path¡£
3£¬Stream ÊÇÃæÏòlow-levelµÄ£¬¶øReader/WriterÊÇÃæÏòch ......

´«ÖDz¥¿ÍJAVAÅàѵ ¸æËßÄãandroidµÄÇ°ÊÀ½ñÉú


   AndroidÊÇ»ùÓÚLinuxÄں˵IJÙ×÷ϵͳ£¬ÔçÆÚÓÉGoogle¿ª·¢£¬ºóÓÉ¿ª·ÅÊÖ»úÁªÃË¿ª·¢¡£Ëü²ÉÓÃÁËÈí¼þ¶Ñ²ãAndroidÆì½¢ÊÖ»ú  ĦÍÐÂÞÀ­XT702µÄ¼Ü¹¹£¬Ö÷Òª·ÖΪÈý²¿·Ö¡£µ×²ãÒÔLinuxÄں˹¤×÷Ϊ»ù´¡£¬Ö»Ìṩ»ù±¾¹¦ÄÜ£»ÆäËûµÄÓ¦ÓÃÈí¼þÔòÓɸ÷¹«Ë¾×ÔÐпª·¢£¬ÒÔJava×÷Ϊ±àд³ÌÐòµÄÒ»²¿·Ö¡£ÁíÍ⣬ΪÁËÍƹã´Ë¼¼Êõ£¬GoogleºÍÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ