亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? logreader.html

?? 網絡爬蟲開源代碼
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<a name="588" href="#588">588</a>     <em>/**<em>*</em></em><a name="589" href="#589">589</a> <em>     * Returns all lines in a log/file matching a given regular expression.  </em><a name="590" href="#590">590</a> <em>     * Possible to get lines immediately following the matched line.  Also </em><a name="591" href="#591">591</a> <em>     * possible to have each line prepended by it's  line number.</em><a name="592" href="#592">592</a> <em>     *</em><a name="593" href="#593">593</a> <em>     * @param aFileName The filename of the log/file</em><a name="594" href="#594">594</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="595" href="#595">595</a> <em>     * @param addLines Any lines following a match that &lt;b>begin&lt;/b> with this </em><a name="596" href="#596">596</a> <em>     *                 string will also be included. We will stop including new </em><a name="597" href="#597">597</a> <em>     *                 lines once we hit the first that does not match.</em><a name="598" href="#598">598</a> <em>     * @param prependLineNumbers If true, then each line will be prepended by </em><a name="599" href="#599">599</a> <em>     *                           it's line number in the file.</em><a name="600" href="#600">600</a> <em>     * @param skipFirstMatches The first number of matches up to this value will</em><a name="601" href="#601">601</a> <em>     *                         be skipped over.</em><a name="602" href="#602">602</a> <em>     * @param numberOfMatches Once past matches that are to be skipped this many</em><a name="603" href="#603">603</a> <em>     *                        matches will be added to the return value. A</em><a name="604" href="#604">604</a> <em>     *                        value of 0 will cause all matching lines to be</em><a name="605" href="#605">605</a> <em>     *                        included.</em><a name="606" href="#606">606</a> <em>     * @return An array of two strings is returned. At index 0 tall lines in a</em><a name="607" href="#607">607</a> <em>     *         log/file matching a given regular expression is located.</em><a name="608" href="#608">608</a> <em>     *         At index 1 there is an informational string about how large a</em><a name="609" href="#609">609</a> <em>     *         segment of the file is being returned.</em><a name="610" href="#610">610</a> <em>     *         Null is returned if errors occur (file not found or io exception)</em><a name="611" href="#611">611</a> <em>     *         If a PatternSyntaxException occurs, it's error message will be</em><a name="612" href="#612">612</a> <em>     *         returned and the informational string will be empty (not null).</em><a name="613" href="#613">613</a> <em>     */</em><a name="614" href="#614">614</a>     <strong>public</strong> <strong>static</strong> String[] getByRegExprFromSeries(String aFileName, <a name="615" href="#615">615</a>                                                   String regExpr, <a name="616" href="#616">616</a>                                                   String addLines, <a name="617" href="#617">617</a>                                                   <strong>boolean</strong> prependLineNumbers,<a name="618" href="#618">618</a>                                                   <strong>int</strong> skipFirstMatches,<a name="619" href="#619">619</a>                                                   <strong>int</strong> numberOfMatches){<a name="620" href="#620">620</a>         <strong>try</strong> {<a name="621" href="#621">621</a>             File f = <strong>new</strong> File(aFileName);<a name="622" href="#622">622</a>             <strong>return</strong> getByRegExpr(<a name="623" href="#623">623</a>                     seriesReader(aFileName),<a name="624" href="#624">624</a>                     regExpr,<a name="625" href="#625">625</a>                     addLines,<a name="626" href="#626">626</a>                     prependLineNumbers,<a name="627" href="#627">627</a>                     skipFirstMatches,<a name="628" href="#628">628</a>                     numberOfMatches,<a name="629" href="#629">629</a>                     f.length());<a name="630" href="#630">630</a>         } <strong>catch</strong> (IOException e) {<a name="631" href="#631">631</a>             e.printStackTrace();<a name="632" href="#632">632</a>             <strong>return</strong> <strong>null</strong>;<a name="633" href="#633">633</a>         }<a name="634" href="#634">634</a>     }<a name="635" href="#635">635</a> <a name="636" href="#636">636</a>     <em>/**<em>*</em></em><a name="637" href="#637">637</a> <em>     * Returns all lines in a log/file matching a given regular expression.  </em><a name="638" href="#638">638</a> <em>     * Possible to get lines immediately following the matched line.  Also </em><a name="639" href="#639">639</a> <em>     * possible to have each line prepended by it's line number.</em><a name="640" href="#640">640</a> <em>     *</em><a name="641" href="#641">641</a> <em>     * @param reader The reader of the log/file</em><a name="642" href="#642">642</a> <em>     * @param regExpr The regular expression that is to be used</em><a name="643" href="#643">643</a> <em>     * @param addLines Any lines following a match that &lt;b>begin&lt;/b> with this </em><a name="644" href="#644">644</a> <em>     *                 string will also be included. We will stop including new </em><a name="645" href="#645">645</a> <em>     *                 lines once we hit the first that does not match.</em><a name="646" href="#646">646</a> <em>     * @param prependLineNumbers If true, then each line will be prepended by </em><a name="647" href="#647">647</a> <em>     *                           it's line number in the file.</em><a name="648" href="#648">648</a> <em>     * @param skipFirstMatches The first number of matches up to this value will</em><a name="649" href="#649">649</a> <em>     *                         be skipped over.</em><a name="650" href="#650">650</a> <em>     * @param numberOfMatches Once past matches that are to be skipped this many</em><a name="651" href="#651">651</a> <em>     *                        matches will be added to the return value. A</em><a name="652" href="#652">652</a> <em>     *                        value of 0 will cause all matching lines to be</em><a name="653" href="#653">653</a> <em>     *                        included.</em><a name="654" href="#654">654</a> <em>     * @param logsize Size of the log in bytes</em><a name="655" href="#655">655</a> <em>     * @return An array of two strings is returned. At index 0 tall lines in a</em><a name="656" href="#656">656</a> <em>     *         log/file matching a given regular expression is located.</em><a name="657" href="#657">657</a> <em>     *         At index 1 there is an informational string about how large a</em><a name="658" href="#658">658</a> <em>     *         segment of the file is being returned.</em><a name="659" href="#659">659</a> <em>     *         Null is returned if errors occur (file not found or io exception)</em><a name="660" href="#660">660</a> <em>     *         If a PatternSyntaxException occurs, it's error message will be</em><a name="661" href="#661">661</a> <em>     *         returned and the informational string will be empty (not null).</em><a name="662" href="#662">662</a> <em>     */</em><a name="663" href="#663">663</a>     <strong>public</strong> <strong>static</strong> String[] getByRegExpr(InputStreamReader reader, <a name="664" href="#664">664</a>                                         String regExpr, <a name="665" href="#665">665</a>                                         String addLines, <a name="666" href="#666">666</a>                                         <strong>boolean</strong> prependLineNumbers,<a name="667" href="#667">667</a>                                         <strong>int</strong> skipFirstMatches,<a name="668" href="#668">668</a>                                         <strong>int</strong> numberOfMatches,<a name="669" href="#669">669</a>                                         <strong>long</strong> logsize) {<a name="670" href="#670">670</a>         StringBuffer ret = <strong>new</strong> StringBuffer();<a name="671" href="#671">671</a>         String info = <span class="string">""</span>;<a name="672" href="#672">672</a>         <strong>try</strong>{<a name="673" href="#673">673</a>             Matcher m = Pattern.compile(regExpr).matcher(<span class="string">""</span>);<a name="674" href="#674">674</a>             BufferedReader bf = <strong>new</strong> BufferedReader(reader, 8192);<a name="675" href="#675">675</a> <a name="676" href="#676">676</a>             String line = <strong>null</strong>;<a name="677" href="#677">677</a>             <strong>int</strong> i = 1;<a name="678" href="#678">678</a>             <strong>boolean</strong> doAdd = false;<a name="679" href="#679">679</a>             <strong>long</strong> linesMatched = 0;<a name="680" href="#680">680</a>             <strong>while</strong> ((line = bf.readLine()) != <strong>null</strong>) {<a name="681" href="#681">681</a>                 m.reset(line);<a name="682" href="#682">682</a>                 <strong>if</strong>(m.matches()){<a name="683" href="#683">683</a>                     <em class="comment">// Found a match</em><a name="684" href="#684">684</a>                     <strong>if</strong>(numberOfMatches > 0 &amp;&amp; <a name="685" href="#685">685</a>                             linesMatched >= skipFirstMatches + numberOfMatches){<a name="686" href="#686">686</a>                         <em class="comment">// Ok, we are done.</em><a name="687" href="#687">687</a>                         <strong>break</strong>;<a name="688" href="#688">688</a>                     }<a name="689" href="#689">689</a>                     linesMatched++;<a name="690" href="#690">690</a>                     <strong>if</strong>(linesMatched > skipFirstMatches){<a name="691" href="#691">691</a>                         <strong>if</strong>(prependLineNumbers){<a name="692" href="#692">692</a>                             ret.append(i);<a name="693" href="#693">693</a>                             ret.append(<span class="string">". "</span>);<a name="694" href="#694">694</a>                         }<a name="695" href="#695">695</a>                         ret.append(line);<a name="696" href="#696">696</a>                         ret.append(<span class="string">"\n"</span>);<a name="697" href="#697">697</a>                         doAdd = <strong>true</strong>;<a name="698" href="#698">698</a>                     }<a name="699" href="#699">699</a>                 } <strong>else</strong> <strong>if</strong>(doAdd) {<a name="700" href="#700">700</a>                     <strong>if</strong>(line.indexOf(addLines)==0){<a name="701" href="#701">701</a>                         linesMatched++;<a name="702" href="#702">702</a>                         <em class="comment">//Ok, line begins with 'addLines'</em><a name="703" href="#703">703</a>                         <strong>if</strong>(prependLineNumbers){<a name="704" href="#704">704</a>                             ret.append(i);<a name="705" href="#705">705</a>                             ret.append(<span class="string">". "</span>);<a name="706" href="#706">706</a>                         }<a name="707" href="#707">707</a>                         ret.append(line);<a name="708" href="#708">708</a>                         ret.append(<span class="string">"\n"</span>);<a name="709" href="#709">709</a>                     }<strong>else</strong>{<a name="710" href="#710">710</a>                         doAdd = false;<a name="711" href="#711">711</a>                     }<a name="712" href="#712">712</a>                 }<a name="713" href="#713">713</a>                 i++;<a name="714" href="#714">714</a>             }<a name="715" href="#715">715</a>             info = buildDisplayingHeader(ret.length(), logsize);<a name="716" href="#716">716</a>         }<strong>catch</strong>(FileNotFoundException e){<a name="717" href="#717">717</a>             <strong>return</strong> <strong>null</strong>;<a name="718" href="#718">718</a>         }<strong>catch</strong>(IOException e){<a name="719" href="#719">719</a>             e.printStackTrace();<a name="720" href="#720">720</a>             <strong>return</strong> <strong>null</strong>;<a name="721" href="#721">721</a>         }<strong>catch</strong>(PatternSyntaxException e){<a name="722" href="#722">722</a>             ret = <strong>new</strong> StringBuffer(e.getMessage());<a name="723" href="#723">723</a>         }<a name="724" href="#724">724</a>         String[] tmp = {ret.toString(),info};<a name="725" href="#725">725</a>         <strong>return</strong> tmp;<a name="726" href="#726">726</a>     }<a name="727" href="#727">727</a> <a name="728" href="#728">728</a>     <em>/**<em>*</em></em><a name="729" href="#729">729</a> <em>     * Implementation of a unix-like 'tail' command</em><a name="730" href="#730">730</a> <em>     *</em><a name="731" href="#731">731</a> <em>     * @param aFileName a file name String</em><a name="732" href="#732">732</a> <em>     * @return An array of two strings is returned. At index 0 the String</em><a name="73

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色视频在线观看| 国产精品国产精品国产专区不蜜| 视频一区国产视频| 久久精品欧美日韩精品| 欧美日韩成人综合| 国产成人av一区二区三区在线观看| 26uuu国产一区二区三区| www.亚洲免费av| 亚洲理论在线观看| 精品不卡在线视频| 欧美日韩卡一卡二| 国产精品亚洲第一| 麻豆成人免费电影| 亚洲观看高清完整版在线观看| 国产视频在线观看一区二区三区| 欧美蜜桃一区二区三区| 精品视频色一区| 欧美中文字幕亚洲一区二区va在线| 粉嫩蜜臀av国产精品网站| 蜜臀精品久久久久久蜜臀 | 亚洲黄色小视频| 亚洲国产精品激情在线观看| 精品久久久久久久久久久久久久久久久 | 欧美极品aⅴ影院| 国产亚洲精久久久久久| 久久久久久久性| 国产三级一区二区| 亚洲欧美综合网| 综合av第一页| 亚洲综合视频在线| 日韩制服丝袜先锋影音| 日韩电影免费在线看| 奇米色一区二区| 国内成+人亚洲+欧美+综合在线| 国产真实乱子伦精品视频| 国产精品18久久久久久vr| 国产乱码精品一区二区三区五月婷 | 亚洲麻豆国产自偷在线| 一区二区三区四区高清精品免费观看 | 国产.欧美.日韩| 东方aⅴ免费观看久久av| 一本色道久久综合亚洲91| 欧美色网站导航| 久久综合久久99| 亚洲三级小视频| 日韩精品成人一区二区三区| 成人精品免费视频| 欧美性受xxxx| 国产精品第四页| 奇米色777欧美一区二区| 99久久综合精品| 日韩欧美电影一区| 一区二区三区在线免费播放| 激情久久五月天| 在线看一区二区| 国产精品久久久久影院老司| 石原莉奈在线亚洲二区| 99精品视频在线观看免费| 91 com成人网| 亚洲精品一二三| 国产成人在线电影| 日韩欧美不卡在线观看视频| 亚洲一区二区在线免费观看视频| 国产99精品视频| 久久久五月婷婷| 精品一区二区三区在线观看| 欧美日韩一区二区三区四区 | 麻豆成人av在线| 91国产福利在线| 亚洲精品欧美二区三区中文字幕| 国产白丝网站精品污在线入口| 日韩精品一区二区三区在线观看| 亚洲高清在线精品| 欧美日韩久久久| 日韩中文字幕一区二区三区| 欧美日韩成人高清| 午夜国产精品影院在线观看| 欧美三级电影精品| 日韩成人精品视频| 精品国产一区二区三区久久久蜜月| 蜜臀精品久久久久久蜜臀| 久久综合狠狠综合| 国产成人免费在线观看| 亚洲视频免费在线观看| 欧美综合在线视频| 久久国产欧美日韩精品| 久久久精品影视| 91精品福利在线| 视频一区欧美日韩| 精品国产伦一区二区三区免费| 国内成人自拍视频| 亚洲天堂网中文字| 欧美一区二区三区播放老司机| 久久91精品国产91久久小草| 中文字幕av一区二区三区高| 日本精品视频一区二区| 麻豆精品一区二区三区| 国产日产亚洲精品系列| 在线观看区一区二| 国内不卡的二区三区中文字幕| 中文字幕一区二区三区乱码在线| 欧美三级电影网| 91在线观看美女| 国产在线乱码一区二区三区| 一区二区三区在线视频免费观看| 精品少妇一区二区三区视频免付费| gogo大胆日本视频一区| 看片的网站亚洲| 亚洲18色成人| 不卡av在线网| 欧美久久久久久久久| 琪琪久久久久日韩精品| 亚洲天堂2016| 国产欧美日韩视频在线观看| 日韩女优毛片在线| 91精品在线免费| 欧美一区二区网站| 欧美日韩亚洲综合一区| 在线观看免费一区| 99精品视频一区| 色婷婷久久综合| 91免费视频观看| 91美女在线视频| 91在线免费看| 色中色一区二区| 在线观看网站黄不卡| 欧美精品一二三四| 7799精品视频| 欧美精品一区二区三区四区| 2024国产精品视频| 综合激情网...| 天天综合日日夜夜精品| 国产女主播一区| 欧美一级片在线观看| 在线免费一区三区| 水野朝阳av一区二区三区| 久久久三级国产网站| 91精品国产综合久久国产大片| 91视频www| 日本精品一级二级| 777色狠狠一区二区三区| 日韩欧美国产综合在线一区二区三区| 欧美性大战久久久久久久| 欧美日韩在线精品一区二区三区激情| 欧美在线小视频| 久久久噜噜噜久久人人看 | 亚洲成a人片综合在线| 日韩中文字幕一区二区三区| 精品一区中文字幕| 91久久一区二区| 精品国产精品网麻豆系列| 亚洲欧洲www| 九色综合狠狠综合久久| 92精品国产成人观看免费| 欧美日韩一区二区欧美激情| 精品国产91久久久久久久妲己 | 7799精品视频| 中文字幕一区二区三区蜜月| 九九**精品视频免费播放| av网站免费线看精品| 欧美精品一区二区在线观看| 亚洲精品菠萝久久久久久久| 亚洲成人福利片| 91影院在线免费观看| 久久精品男人天堂av| 三级一区在线视频先锋| 成人av网站大全| 精品国产a毛片| 日本成人超碰在线观看| 91.麻豆视频| 亚洲成在线观看| 91小视频免费观看| 亚洲国产成人自拍| 丰满白嫩尤物一区二区| 欧美xxxx老人做受| 亚洲成人精品一区二区| 欧美精品一二三四| 强制捆绑调教一区二区| 7777精品伊人久久久大香线蕉的 | 中文字幕亚洲电影| 99在线精品免费| 亚洲精品videosex极品| 在线视频国内一区二区| 中文字幕av在线一区二区三区| 国产二区国产一区在线观看| 久久丝袜美腿综合| 国产精品18久久久久久久久| 久久久久久久久久看片| 国产一区二区三区在线观看免费| 2020国产精品久久精品美国| 国产乱对白刺激视频不卡| 国产欧美日韩精品a在线观看| 国产美女精品一区二区三区| 亚洲精品在线免费观看视频| 国产成人精品免费网站| 亚洲免费观看高清完整版在线| 99麻豆久久久国产精品免费 | 精品在线观看视频| 亚洲欧洲日本在线| 91精选在线观看|