锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产三级精品在线,日韩精品一二三四区,亚洲一区二区三区中文字幕在线
http://www.aygfsteel.com/SkyWinder/category/50117.htmlJust try to find my memorize... zh-cn Mon, 05 Nov 2012 20:57:39 GMT Mon, 05 Nov 2012 20:57:39 GMT 60 import store for website trustcacert http://www.aygfsteel.com/SkyWinder/archive/2012/11/05/390825.html鏋腑鐜庣幉 鏋腑鐜庣幉 Mon, 05 Nov 2012 09:21:00 GMT http://www.aygfsteel.com/SkyWinder/archive/2012/11/05/390825.html http://www.aygfsteel.com/SkyWinder/comments/390825.html http://www.aygfsteel.com/SkyWinder/archive/2012/11/05/390825.html#Feedback 0 http://www.aygfsteel.com/SkyWinder/comments/commentRss/390825.html http://www.aygfsteel.com/SkyWinder/services/trackbacks/390825.html 闃呰鍏ㄦ枃 ]]> 灝哾om瀵硅薄杞崲鎴恠tring http://www.aygfsteel.com/SkyWinder/archive/2011/11/15/363857.html鏋腑鐜庣幉 鏋腑鐜庣幉 Tue, 15 Nov 2011 08:30:00 GMT http://www.aygfsteel.com/SkyWinder/archive/2011/11/15/363857.html http://www.aygfsteel.com/SkyWinder/comments/363857.html http://www.aygfsteel.com/SkyWinder/archive/2011/11/15/363857.html#Feedback 0 http://www.aygfsteel.com/SkyWinder/comments/commentRss/363857.html http://www.aygfsteel.com/SkyWinder/services/trackbacks/363857.html 1 public class Canon_2219Impl extends BaseCrawler { 2 public Transformer transformer = null ; 3 public XPath xpath = null ; 4 . 5 6 public Canon_2219Impl() { 7 xpath = XPathFactory.newInstance().newXPath(); 8 try { 9 transformer = TransformerFactory.newInstance().newTransformer(); 10 transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, " yes " ); 11 transformer.setOutputProperty(OutputKeys.METHOD, " xml " ); 12 transformer.setOutputProperty(OutputKeys.ENCODING," ISO-8859-1 " ); 13 transformer.setOutputProperty(" {http://xml.apache.org/xslt}indent-amount " , " 4 " ); 14 transformer.setOutputProperty(OutputKeys.INDENT, " yes " ); 15 }catch (Exception e) { 16 e.printStackTrace();17 }18 19 }20 21 22 // change node to string 23 protected String asXml(Node node) throws Exception { 24 if (node == null ) { 25 return null ; 26 }27 DOMSource domSource = new DOMSource(node); 28 java.io.StringWriter sw = new java.io.StringWriter(); 29 StreamResult sr = new StreamResult(sw); 30 this .transformer.transform(domSource, sr); 31 String xml = sw.toString(); 32 return xml; 33 }34 }35 36 ]]>java鍒ゆ柇瀛楃涓叉槸鍚︽槸鏃ユ湡 http://www.aygfsteel.com/SkyWinder/archive/2011/11/15/363853.html鏋腑鐜庣幉 鏋腑鐜庣幉 Tue, 15 Nov 2011 07:46:00 GMT http://www.aygfsteel.com/SkyWinder/archive/2011/11/15/363853.html http://www.aygfsteel.com/SkyWinder/comments/363853.html http://www.aygfsteel.com/SkyWinder/archive/2011/11/15/363853.html#Feedback 0 http://www.aygfsteel.com/SkyWinder/comments/commentRss/363853.html http://www.aygfsteel.com/SkyWinder/services/trackbacks/363853.html 1 . public class StringUtil { 2 . 3 . /** */ /** 4. * 鍒ゆ柇瀛楃涓插兼槸鍚︿負絀?nbsp; 5. * @param value 6. * @return 7. */ 8 . public static boolean isEmpty(String value) { 9 . if (value == null || "" .equals(value)) { 10 . return true ; 11 . } 12 . return false ; 13 . } 14 . 15 . public static boolean isDate(String value,String format) { 16 . 17 . SimpleDateFormat sdf = null ; 18 . ParsePosition pos = new ParsePosition( 0 ); // 鎸囧畾浠庢墍浼犲瓧絎︿覆鐨勯浣嶅紑濮嬭В鏋?nbsp; 19 . 20 . if (value == null || isEmpty(format)) { 21 . return false ; 22 . } 23 . try { 24 . sdf = new SimpleDateFormat(format); 25 . sdf.setLenient( false ); 26 . Date date = sdf.parse(value,pos); 27 . if (date == null ) { 28 . return false ; 29 . } else { 30 . System.out.println( " -------->pos : " + pos.getIndex()); 31 . System.out.println( " -------->date : " + sdf.format(date)); 32 . // 鏇翠負涓ヨ皚鐨勬棩鏈?濡?011-03-024璁や負鏄笉鍚堟硶鐨?nbsp; 33 . if (pos.getIndex() > sdf.format(date).length()) { 34 . return false ; 35 . } 36 . return true ; 37 . } 38 . } catch (Exception e) { 39 . e.printStackTrace(); 40 . return false ; 41 . } 42 . } 43 . 44 . public static void main(String[] args) { 45 . System.out.println(isDate( " 21011-02-18 " , " yyyy-MM-dd " )); 46 . } 47 . } ]]>
主站蜘蛛池模板:
和平区 |
城市 |
蒙阴县 |
丹江口市 |
崇仁县 |
阿图什市 |
建水县 |
绥芬河市 |
来安县 |
蕲春县 |
望城县 |
中西区 |
南京市 |
桓台县 |
宁海县 |
明光市 |
盐山县 |
东光县 |
马关县 |
筠连县 |
揭西县 |
莲花县 |
太和县 |
北辰区 |
桑植县 |
扬州市 |
且末县 |
德安县 |
沙河市 |
瑞金市 |
泾川县 |
罗江县 |
门源 |
伊春市 |
扶风县 |
广河县 |
桓仁 |
福鼎市 |
临湘市 |
万州区 |
镇巴县 |